C# Класс EasyCaching.Disk.DefaultDiskCachingProvider

Наследование: EasyCachingAbstractProvider
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

BaseExists() публичный Метод

public BaseExists ( string cacheKey ) : bool
cacheKey string
Результат bool

BaseFlush() публичный Метод

public BaseFlush ( ) : void
Результат void

BaseGet() публичный Метод

public BaseGet ( string cacheKey ) : CacheValue
cacheKey string
Результат CacheValue

BaseGet() публичный Метод

public BaseGet ( string cacheKey, Func dataRetriever, TimeSpan expiration ) : CacheValue
cacheKey string
dataRetriever Func
expiration TimeSpan
Результат CacheValue

BaseGetAll() публичный Метод

public BaseGetAll ( IEnumerable cacheKeys ) : CacheValue>.IDictionary
cacheKeys IEnumerable
Результат CacheValue>.IDictionary

BaseGetByPrefix() публичный Метод

public BaseGetByPrefix ( string prefix ) : CacheValue>.IDictionary
prefix string
Результат CacheValue>.IDictionary

BaseGetCount() публичный Метод

public BaseGetCount ( string prefix = "" ) : int
prefix string
Результат int

BaseGetExpiration() публичный Метод

public BaseGetExpiration ( string cacheKey ) : TimeSpan
cacheKey string
Результат TimeSpan

BaseGetProviderInfo() публичный Метод

public BaseGetProviderInfo ( ) : ProviderInfo
Результат ProviderInfo

BaseRemove() публичный Метод

public BaseRemove ( string cacheKey ) : void
cacheKey string
Результат void

BaseRemoveAll() публичный Метод

public BaseRemoveAll ( IEnumerable cacheKeys ) : void
cacheKeys IEnumerable
Результат void

BaseRemoveByPrefix() публичный Метод

public BaseRemoveByPrefix ( string prefix ) : void
prefix string
Результат void

BaseSet() публичный Метод

public BaseSet ( string cacheKey, cacheValue, TimeSpan expiration ) : void
cacheKey string
expiration TimeSpan
Результат void

BaseSetAll() публичный Метод

public BaseSetAll ( IDictionary values, TimeSpan expiration ) : void
values IDictionary
expiration TimeSpan
Результат void

BaseTrySet() публичный Метод

public BaseTrySet ( string cacheKey, cacheValue, TimeSpan expiration ) : bool
cacheKey string
expiration TimeSpan
Результат bool

DefaultDiskCachingProvider() публичный Метод

public DefaultDiskCachingProvider ( string name, EasyCaching.Disk.DiskOptions options, ILoggerFactory loggerFactory = null ) : System
name string
options EasyCaching.Disk.DiskOptions
loggerFactory ILoggerFactory
Результат System