public static CacheBody <T> GetInstance()
 {
     if (_instance == null)
     {
         lock (locker)
         {
             if (_instance == null)
             {
                 _instance = new CacheBody <T>();
             }
         }
     }
     return(_instance);
 }
 public static void Update <T>(string key, T value, int expireSec = 0)
 {
     CacheBody <T> .GetInstance().Update(key, value, expireSec);
 }
 public static T GetOrCreate <T>(string key, Func <T> create, int expireSec)
 {
     return(CacheBody <T> .GetInstance().GetOrCreate(key, create, expireSec));
 }
 public static void Remove <T>(string key)
 {
     CacheBody <T> .GetInstance().Remove(key);
 }
 public static IEnumerable <string> GetAllKey <T>()
 {
     return(CacheBody <T> .GetInstance().GetAllKey());
 }
 public static T Get <T>(string key)
 {
     return(CacheBody <T> .GetInstance().Get(key));
 }
 public static string Get(string key)
 {
     return(CacheBody <string> .GetInstance().Get(key));
 }
 public static bool ContainsKey <T>(string key)
 {
     return(CacheBody <T> .GetInstance().ContainsKey(key));
 }
 public static void Add <T>(string key, T value, int expireSec = 0)
 {
     CacheBody <T> .GetInstance().Add(key, value, expireSec);
 }