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); }
public static DME_MemoryCache GetInstance() { return defaultInstance ?? (defaultInstance = GetInstance("Default")); }