Beispiel #1
0
 public static object GetCacheEntryLock(string key, int refreshIntervalSeconds, int slidingExpirationSeconds, CacheLoaderDelegate loaderDelegate)
 {
     return(CacheLockbox.GetLock(key, TimeSpan.FromSeconds((double)(refreshIntervalSeconds * Factor)), TimeSpan.FromSeconds((double)(slidingExpirationSeconds * Factor)), loaderDelegate));
 }
Beispiel #2
0
 public static object GetCacheEntryLock(string key, TimeSpan refreshInterval, TimeSpan slidingExpiration, CacheLoaderDelegate loaderDelegate)
 {
     return(CacheLockbox.GetLock(key, refreshInterval, slidingExpiration, loaderDelegate));
 }
Beispiel #3
0
 public static object GetCacheEntryLock(string key)
 {
     return(CacheLockbox.GetLock(key));
 }