Exemplo n.º 1
0
 internal override void SetCacheData(string key, DistributeData data, DistributedCacheEntryOptions options)
 {
     fLock.WriteLockAction(() =>
     {
         fCacheTable.TryAdd(key, new WeakReference <DistributeData>(data));
         Cache.Set(key, data.ToDistributeData(), options);
         return(true);
     });
 }
Exemplo n.º 2
0
 internal virtual void SetCacheData(string key, DistributeData data,
                                    DistributedCacheEntryOptions options)
 {
     Cache.Set(key, data.ToDistributeData(), options);
 }