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

Inheritance: BaseCacheLock
Afficher le fichier Open project: JeffreySu/WeiXinMPSDK

Méthodes publiques

Méthode Description
Lock ( string resourceName ) : bool
Lock ( string resourceName, int retryCount, System.TimeSpan retryDelay ) : bool
MemcachedCacheLock ( MemcachedObjectCacheStrategy strategy, string resourceName, string key, int retryCount, System.TimeSpan retryDelay ) : System
UnLock ( string resourceName ) : void

Private Methods

Méthode Description
GetLockKey ( string resourceName ) : string
RetryLock ( string resourceName, int retryCount, System.TimeSpan retryDelay, Func action ) : bool

Method Details

Lock() public méthode

public Lock ( string resourceName ) : bool
resourceName string
Résultat bool

Lock() public méthode

public Lock ( string resourceName, int retryCount, System.TimeSpan retryDelay ) : bool
resourceName string
retryCount int
retryDelay System.TimeSpan
Résultat bool

MemcachedCacheLock() public méthode

public MemcachedCacheLock ( MemcachedObjectCacheStrategy strategy, string resourceName, string key, int retryCount, System.TimeSpan retryDelay ) : System
strategy MemcachedObjectCacheStrategy
resourceName string
key string
retryCount int
retryDelay System.TimeSpan
Résultat System

UnLock() public méthode

public UnLock ( string resourceName ) : void
resourceName string
Résultat void