예제 #1
0
 public static void Init()
 {
     lock (_locker)
     {
         CurrentService = new MemoryCacheService(MemoryCache.Default);
     }
 }
예제 #2
0
 public static void Init(IMemoryCache cache)
 {
     lock (_locker)
     {
         CurrentService = new MemoryCacheService(cache);
     }
 }