C# Class Senparc.Weixin.Cache.Memcached.MemcachedObjectCacheStrategy

Inheritance: BaseCacheStrategy, IObjectCacheStrategy
Afficher le fichier Open project: JeffreySu/WeiXinMPSDK Class Usage Examples

Méthodes publiques

Méthode 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
MemcachedObjectCacheStrategy ( ) : System

LocalCacheStrategy的构造函数

RegisterServerList ( int>.Dictionary serverlist ) : void

注册列表

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

Private Methods

Méthode Description
GetMemcachedClientConfiguration ( ) : MemcachedClientConfiguration

Method Details

BeginCacheLock() public méthode

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

CheckExisted() public méthode

public CheckExisted ( string key, bool isFullKey = false ) : bool
key string
isFullKey bool
Résultat bool

Get() public méthode

public Get ( string key, bool isFullKey = false ) : object
key string
isFullKey bool
Résultat object

GetAll() public méthode

public GetAll ( ) : object>.IDictionary
Résultat object>.IDictionary

GetCount() public méthode

public GetCount ( ) : long
Résultat long

InsertToCache() public méthode

public InsertToCache ( string key, object value ) : void
key string
value object
Résultat void

MemcachedObjectCacheStrategy() public méthode

LocalCacheStrategy的构造函数
public MemcachedObjectCacheStrategy ( ) : System
Résultat System

RegisterServerList() public static méthode

注册列表
public static RegisterServerList ( int>.Dictionary serverlist ) : void
serverlist int>.Dictionary Key:服务器地址(通常为IP),Value:端口
Résultat void

RemoveFromCache() public méthode

public RemoveFromCache ( string key, bool isFullKey = false ) : void
key string
isFullKey bool
Résultat void

Update() public méthode

public Update ( string key, object value, bool isFullKey = false ) : void
key string
value object
isFullKey bool
Résultat void