C# Class EFCache.Redis.RedisCache

Inheritance: IRedisCache
Datei anzeigen Open project: silentbobbert/EFCache.Redis

Public Methods

Method Description
GetItem ( string key, object &value ) : bool
InvalidateItem ( string key ) : void
InvalidateSets ( IEnumerable entitySets ) : void
Purge ( ) : void
PutItem ( string key, object value, IEnumerable dependentEntitySets, System.TimeSpan slidingExpiration, DateTimeOffset absoluteExpiration ) : void
RedisCache ( StackExchange.Redis.ConfigurationOptions options ) : StackExchange.Redis
RedisCache ( StackExchange.Redis.ConfigurationOptions options, string cacheIdentifier ) : StackExchange.Redis
RedisCache ( string config ) : StackExchange.Redis
RedisCache ( string config, string cacheIdentifier ) : StackExchange.Redis

Protected Methods

Method Description
OnCachingFailed ( Exception e, [ memberName = "" ) : void

Private Methods

Method Description
AddCacheQualifier ( string entitySet ) : RedisKey
EntryExpired ( CacheEntry entry, DateTimeOffset now ) : bool
HashKey ( string key ) : string

Method Details

GetItem() public method

public GetItem ( string key, object &value ) : bool
key string
value object
return bool

InvalidateItem() public method

public InvalidateItem ( string key ) : void
key string
return void

InvalidateSets() public method

public InvalidateSets ( IEnumerable entitySets ) : void
entitySets IEnumerable
return void

OnCachingFailed() protected method

protected OnCachingFailed ( Exception e, [ memberName = "" ) : void
e System.Exception
memberName [
return void

Purge() public method

public Purge ( ) : void
return void

PutItem() public method

public PutItem ( string key, object value, IEnumerable dependentEntitySets, System.TimeSpan slidingExpiration, DateTimeOffset absoluteExpiration ) : void
key string
value object
dependentEntitySets IEnumerable
slidingExpiration System.TimeSpan
absoluteExpiration DateTimeOffset
return void

RedisCache() public method

public RedisCache ( StackExchange.Redis.ConfigurationOptions options ) : StackExchange.Redis
options StackExchange.Redis.ConfigurationOptions
return StackExchange.Redis

RedisCache() public method

public RedisCache ( StackExchange.Redis.ConfigurationOptions options, string cacheIdentifier ) : StackExchange.Redis
options StackExchange.Redis.ConfigurationOptions
cacheIdentifier string
return StackExchange.Redis

RedisCache() public method

public RedisCache ( string config ) : StackExchange.Redis
config string
return StackExchange.Redis

RedisCache() public method

public RedisCache ( string config, string cacheIdentifier ) : StackExchange.Redis
config string
cacheIdentifier string
return StackExchange.Redis