Pavalisoft.Caching  1.2.1
A single unified Caching Api for both MemoryCache and DistributedCache implementations including CacheManager
Pavalisoft.Caching.Redis.ExtendedRedisCache Class Reference

Provides RedisCache version implementation of IExtendedDistributedCache More...

Inheritance diagram for Pavalisoft.Caching.Redis.ExtendedRedisCache:
Pavalisoft.Caching.Interfaces.IExtendedDistributedCache

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...
 

Detailed Description

Provides RedisCache version implementation of IExtendedDistributedCache

Constructor & Destructor Documentation

◆ ExtendedRedisCache()

Pavalisoft.Caching.Redis.ExtendedRedisCache.ExtendedRedisCache ( IOptions< RedisCacheOptions >  optionsAccessor)

Creates an instance of ExtendedRedisCache with RedisCacheOptions

Parameters
optionsAccessor

Member Function Documentation

◆ Set()

void Pavalisoft.Caching.Redis.ExtendedRedisCache.Set ( string  key,
byte []  value,
ExtendedDistributedCacheEntryOptions  options 
)

Adds the Cache object binary stream to distributed cache

Parameters
keyCache key
valueCache object in binary stream
optionsExtendedDistributedCacheEntryOptions where the cache object should be added to.

Implements Pavalisoft.Caching.Interfaces.IExtendedDistributedCache.

◆ SetAsync()

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

Parameters
keyCache key
valueCache object in binary stream
optionsExtendedDistributedCacheEntryOptions where the cache object should be added to.
tokenCancellationToken to be used while adding cache object to distributed cache.

Implements Pavalisoft.Caching.Interfaces.IExtendedDistributedCache.


The documentation for this class was generated from the following file: