C# Class EasyCaching.Disk.DefaultDiskCachingProvider

Inheritance: EasyCachingAbstractProvider
Afficher le fichier Open project: mindbox-moscow/EasyCaching

Méthodes publiques

Méthode 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

Méthode 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 méthode

public BaseExists ( string cacheKey ) : bool
cacheKey string
Résultat bool

BaseFlush() public méthode

public BaseFlush ( ) : void
Résultat void

BaseGet() public méthode

public BaseGet ( string cacheKey ) : CacheValue
cacheKey string
Résultat CacheValue

BaseGet() public méthode

public BaseGet ( string cacheKey, Func dataRetriever, TimeSpan expiration ) : CacheValue
cacheKey string
dataRetriever Func
expiration TimeSpan
Résultat CacheValue

BaseGetAll() public méthode

public BaseGetAll ( IEnumerable cacheKeys ) : CacheValue>.IDictionary
cacheKeys IEnumerable
Résultat CacheValue>.IDictionary

BaseGetByPrefix() public méthode

public BaseGetByPrefix ( string prefix ) : CacheValue>.IDictionary
prefix string
Résultat CacheValue>.IDictionary

BaseGetCount() public méthode

public BaseGetCount ( string prefix = "" ) : int
prefix string
Résultat int

BaseGetExpiration() public méthode

public BaseGetExpiration ( string cacheKey ) : TimeSpan
cacheKey string
Résultat TimeSpan

BaseGetProviderInfo() public méthode

public BaseGetProviderInfo ( ) : ProviderInfo
Résultat ProviderInfo

BaseRemove() public méthode

public BaseRemove ( string cacheKey ) : void
cacheKey string
Résultat void

BaseRemoveAll() public méthode

public BaseRemoveAll ( IEnumerable cacheKeys ) : void
cacheKeys IEnumerable
Résultat void

BaseRemoveByPrefix() public méthode

public BaseRemoveByPrefix ( string prefix ) : void
prefix string
Résultat void

BaseSet() public méthode

public BaseSet ( string cacheKey, cacheValue, TimeSpan expiration ) : void
cacheKey string
expiration TimeSpan
Résultat void

BaseSetAll() public méthode

public BaseSetAll ( IDictionary values, TimeSpan expiration ) : void
values IDictionary
expiration TimeSpan
Résultat void

BaseTrySet() public méthode

public BaseTrySet ( string cacheKey, cacheValue, TimeSpan expiration ) : bool
cacheKey string
expiration TimeSpan
Résultat bool

DefaultDiskCachingProvider() public méthode

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