-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend interface for extension dev and optimize In-Memory caching (#124)
* General tweaks and changes - More efficient In-Memory cache purging and compacting background workers - Provide more ways to register a custom cache implementations - Little optimizations - Create interface for CustomRedisCacheService - Fix dynamic access warnings for health checks * Reflect changes in Documentation * Update extension developer documentation * fix FormatByteCount to choose proper suffix
- Loading branch information
1 parent
41478a4
commit 896cc13
Showing
27 changed files
with
483 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using Microsoft.Extensions.Caching.Distributed; | ||
using StackExchange.Redis; | ||
|
||
namespace SimpleCDN.Extensions.Redis | ||
{ | ||
/// <summary> | ||
/// Represents a service for storing and retrieving data in a Redis cache. | ||
/// </summary> | ||
/// <seealso cref="IDistributedCache"/> | ||
public interface IRedisCacheService : IDistributedCache | ||
{ | ||
/// <summary> | ||
/// Gets the <see cref="ConnectionMultiplexer"/> instance used for the Redis cache. | ||
/// </summary> | ||
/// <seealso cref="ConnectionMultiplexer"/> | ||
/// <seealso cref="GetRedisConnectionAsync"/> | ||
public ConnectionMultiplexer GetRedisConnection(); | ||
|
||
/// <summary> | ||
/// Gets the <see cref="ConnectionMultiplexer"/> instance used for the Redis cache asynchronously. | ||
/// </summary> | ||
/// <seealso cref="ConnectionMultiplexer"/> | ||
/// <seealso cref="GetRedisConnection"/> | ||
public Task<ConnectionMultiplexer> GetRedisConnectionAsync(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.