Pavalisoft.Caching
1.2.1
A single unified Caching Api for both MemoryCache and DistributedCache implementations including CacheManager
|
Provides RedisCache version implementation of IExtendedDistributedCache More...
Public Member Functions | |
ExtendedRedisCache (IOptions< RedisCacheOptions > optionsAccessor) | |
Creates an instance of ExtendedRedisCache with RedisCacheOptions More... | |
void | Set (string key, byte[] value, ExtendedDistributedCacheEntryOptions options) |
Adds the Cache object binary stream to distributed cache More... | |
async Task | SetAsync (string key, byte[] value, ExtendedDistributedCacheEntryOptions options, CancellationToken token=default) |
Adds the Cache object binary stream to distributed cache asynchronously More... | |
Provides RedisCache version implementation of IExtendedDistributedCache
Pavalisoft.Caching.Redis.ExtendedRedisCache.ExtendedRedisCache | ( | IOptions< RedisCacheOptions > | optionsAccessor | ) |
Creates an instance of ExtendedRedisCache with RedisCacheOptions
optionsAccessor |
void Pavalisoft.Caching.Redis.ExtendedRedisCache.Set | ( | string | key, |
byte [] | value, | ||
ExtendedDistributedCacheEntryOptions | options | ||
) |
Adds the Cache object binary stream to distributed cache
key | Cache key |
value | Cache object in binary stream |
options | ExtendedDistributedCacheEntryOptions where the cache object should be added to. |
Implements Pavalisoft.Caching.Interfaces.IExtendedDistributedCache.
async Task Pavalisoft.Caching.Redis.ExtendedRedisCache.SetAsync | ( | string | key, |
byte [] | value, | ||
ExtendedDistributedCacheEntryOptions | options, | ||
CancellationToken | token = default |
||
) |
Adds the Cache object binary stream to distributed cache asynchronously
key | Cache key |
value | Cache object in binary stream |
options | ExtendedDistributedCacheEntryOptions where the cache object should be added to. |
token | CancellationToken to be used while adding cache object to distributed cache. |
Implements Pavalisoft.Caching.Interfaces.IExtendedDistributedCache.