Exemplo n.º 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);
 }
Exemplo n.º 2
0
 public static DME_MemoryCache GetInstance()
 {
     return defaultInstance ?? (defaultInstance = GetInstance("Default"));
 }