예제 #1
0
 public static void Setup(string name, string keyPrefix)
 {
     if (instances.ContainsKey(name))
     {
         throw new Exception("Trying to configure MemoryCachedClient instance \"" + name + "\" twice.");
     }
     instances[name] = new DME_MemoryCache(keyPrefix);
 }
예제 #2
0
 public static DME_MemoryCache GetInstance()
 {
     return defaultInstance ?? (defaultInstance = GetInstance("Default"));
 }