public static void ClearSingleton() { CacheData.ClearKey(typeof(T).Name); }
public static void Set(string id, T obj, int decaySec = 60 *CacheData.kSecond) { string cacheKey = MakeKey(id); CacheData.Set(cacheKey, obj, decaySec); }
public static void SetSingleton(T obj, int decaySec = 60 *CacheData.kSecond) { CacheData.Set(typeof(T).Name, obj, decaySec); }
public static T GetSingleton() { // Get singleton. Instance() return((T)CacheData.Get(typeof(T).Name)); }