コード例 #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);
     });
 }
コード例 #2
0
ファイル: DistributedCache.cs プロジェクト: madiantech/tkcore
 internal virtual void SetCacheData(string key, DistributeData data,
                                    DistributedCacheEntryOptions options)
 {
     Cache.Set(key, data.ToDistributeData(), options);
 }