C# Class EasyCaching.Disk.DefaultDiskCachingProvider

Inheritance: EasyCachingAbstractProvider
Mostrar archivo Open project: mindbox-moscow/EasyCaching

Public Methods

Method Description
BaseExists ( string cacheKey ) : bool
BaseFlush ( ) : void
BaseGet ( string cacheKey ) : CacheValue
BaseGet ( string cacheKey, Func dataRetriever, TimeSpan expiration ) : CacheValue
BaseGetAll ( IEnumerable cacheKeys ) : CacheValue>.IDictionary
BaseGetByPrefix ( string prefix ) : CacheValue>.IDictionary
BaseGetCount ( string prefix = "" ) : int
BaseGetExpiration ( string cacheKey ) : TimeSpan
BaseGetProviderInfo ( ) : ProviderInfo
BaseRemove ( string cacheKey ) : void
BaseRemoveAll ( IEnumerable cacheKeys ) : void
BaseRemoveByPrefix ( string prefix ) : void
BaseSet ( string cacheKey, cacheValue, TimeSpan expiration ) : void
BaseSetAll ( IDictionary values, TimeSpan expiration ) : void
BaseTrySet ( string cacheKey, cacheValue, TimeSpan expiration ) : bool
DefaultDiskCachingProvider ( string name, EasyCaching.Disk.DiskOptions options, ILoggerFactory loggerFactory = null ) : System

Private Methods

Method Description
AppendKey ( string key, string md5Key ) : void
BuildDiskCacheValue ( t, TimeSpan ts ) : byte[]
BuildMd5Path ( string key ) : string
BuildRawPath ( string key ) : string
DeleteDirectory ( string path ) : void
DeleteFileWithRetry ( string path ) : bool
GetDiskCacheValue ( string path ) : EasyCaching.Disk.DiskCacheValue
GetFilePath ( string key ) : System
GetMd5Str ( string src ) : string
GetRawPath ( string cacheKey ) : string
Init ( ) : void
InitCacheKey ( ) : void
SaveKeyToFile ( object state ) : void

Method Details

BaseExists() public method

public BaseExists ( string cacheKey ) : bool
cacheKey string
return bool

BaseFlush() public method

public BaseFlush ( ) : void
return void

BaseGet() public method

public BaseGet ( string cacheKey ) : CacheValue
cacheKey string
return CacheValue

BaseGet() public method

public BaseGet ( string cacheKey, Func dataRetriever, TimeSpan expiration ) : CacheValue
cacheKey string
dataRetriever Func
expiration TimeSpan
return CacheValue

BaseGetAll() public method

public BaseGetAll ( IEnumerable cacheKeys ) : CacheValue>.IDictionary
cacheKeys IEnumerable
return CacheValue>.IDictionary

BaseGetByPrefix() public method

public BaseGetByPrefix ( string prefix ) : CacheValue>.IDictionary
prefix string
return CacheValue>.IDictionary

BaseGetCount() public method

public BaseGetCount ( string prefix = "" ) : int
prefix string
return int

BaseGetExpiration() public method

public BaseGetExpiration ( string cacheKey ) : TimeSpan
cacheKey string
return TimeSpan

BaseGetProviderInfo() public method

public BaseGetProviderInfo ( ) : ProviderInfo
return ProviderInfo

BaseRemove() public method

public BaseRemove ( string cacheKey ) : void
cacheKey string
return void

BaseRemoveAll() public method

public BaseRemoveAll ( IEnumerable cacheKeys ) : void
cacheKeys IEnumerable
return void

BaseRemoveByPrefix() public method

public BaseRemoveByPrefix ( string prefix ) : void
prefix string
return void

BaseSet() public method

public BaseSet ( string cacheKey, cacheValue, TimeSpan expiration ) : void
cacheKey string
expiration TimeSpan
return void

BaseSetAll() public method

public BaseSetAll ( IDictionary values, TimeSpan expiration ) : void
values IDictionary
expiration TimeSpan
return void

BaseTrySet() public method

public BaseTrySet ( string cacheKey, cacheValue, TimeSpan expiration ) : bool
cacheKey string
expiration TimeSpan
return bool

DefaultDiskCachingProvider() public method

public DefaultDiskCachingProvider ( string name, EasyCaching.Disk.DiskOptions options, ILoggerFactory loggerFactory = null ) : System
name string
options EasyCaching.Disk.DiskOptions
loggerFactory ILoggerFactory
return System