Esempio n. 1
0
 /// <summary>Gets a cache instance using full name of given class</summary>
 /// <remarks>For better performance, store the result in client class</remarks>
 public static ICache GetCache(Type type)
 {
     return(CacheManagerInternals.GetCache(type));
 }
Esempio n. 2
0
 /// <summary>Gets a cache by name - return a specialized cache implementation type</summary>
 /// <remarks>For better performance, store the result in client class</remarks>
 public static TCache GetCache <TCache>(string name) where TCache : ICache
 {
     return(CacheManagerInternals.GetCache <TCache>(name));
 }
Esempio n. 3
0
 /// <summary>Gets a cache instance using full name of given class</summary>
 /// <remarks>For better performance, store the result in client class</remarks>
 public static ICache GetCache <TClass>()
 {
     return(CacheManagerInternals.GetCache <TClass>());
 }
Esempio n. 4
0
 /// <summary>Gets a cache by name</summary>
 /// <remarks>For better performance, store the result in client class</remarks>
 public static ICache GetCache(string name)
 {
     return(CacheManagerInternals.GetCache(name));
 }