C# Class Senparc.Weixin.Cache.LocalObjectCacheStrategy

本地容器缓存策略
Inheritance: BaseCacheStrategy, IObjectCacheStrategy
ファイルを表示 Open project: JeffreySu/WeiXinMPSDK

Public Methods

Method Description
BeginCacheLock ( string resourceName, string key, int retryCount, System.TimeSpan retryDelay = newTimeSpan() ) : ICacheLock
CheckExisted ( string key, bool isFullKey = false ) : bool
Get ( string key, bool isFullKey = false ) : object
GetAll ( ) : object>.IDictionary
GetCount ( ) : long
InsertToCache ( string key, object value ) : void
RemoveFromCache ( string key, bool isFullKey = false ) : void
Update ( string key, object value, bool isFullKey = false ) : void
UpdateContainerBag ( string key, object bag, bool isFullKey = false ) : void

Method Details

BeginCacheLock() public method

public BeginCacheLock ( string resourceName, string key, int retryCount, System.TimeSpan retryDelay = newTimeSpan() ) : ICacheLock
resourceName string
key string
retryCount int
retryDelay System.TimeSpan
return ICacheLock

CheckExisted() public method

public CheckExisted ( string key, bool isFullKey = false ) : bool
key string
isFullKey bool
return bool

Get() public method

public Get ( string key, bool isFullKey = false ) : object
key string
isFullKey bool
return object

GetAll() public method

public GetAll ( ) : object>.IDictionary
return object>.IDictionary

GetCount() public method

public GetCount ( ) : long
return long

InsertToCache() public method

public InsertToCache ( string key, object value ) : void
key string
value object
return void

RemoveFromCache() public method

public RemoveFromCache ( string key, bool isFullKey = false ) : void
key string
isFullKey bool
return void

Update() public method

public Update ( string key, object value, bool isFullKey = false ) : void
key string
value object
isFullKey bool
return void

UpdateContainerBag() public method

public UpdateContainerBag ( string key, object bag, bool isFullKey = false ) : void
key string
bag object
isFullKey bool
return void