/// <summary> /// Removes all notifier registrations with any given name. /// This method is to be used during application initialization, it does not delete or replace the notifier if already in use! /// </summary> public static void RemoveAllNotifiers() { CacheManagerInternals.RemoveAllNotifiers(); }
/// <summary> /// Adds or sets a notifier by name /// This method is to be used during application initialization, it does not delete or replace the notifier if already in use! /// </summary> /// <param name="name"></param> /// <param name="notifier"></param> public static void SetNotifier(string name, ICacheNotifier notifier) { CacheManagerInternals.SetNotifier(name, notifier); }
/// <summary> /// Removes a notifier registration with a given name. /// This method is to be used during application initialization, it does not delete or replace the notifier if already in use! /// </summary> /// <param name="name"></param> public static void RemoveNotifier(string name) { CacheManagerInternals.RemoveNotifier(name); }
/// <summary> /// Removes a cache registration with a given name. /// This method is to be used during application initialization, it does not delete or replace the cache if already in use! /// </summary> /// <param name="name"></param> public static void RemoveConnectionString(string name) { CacheManagerInternals.RemoveConnectionString(name); }
/// <summary> /// Removes all cache registrations with any given name. /// This method is to be used during application initialization, it does not delete or replace the cache if already in use! /// </summary> public static void RemoveAllConnectionStrings() { CacheManagerInternals.RemoveAllConnectionStrings(); }
/// <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)); }
public static async Task <ICache> GetCacheAsync(string name) { return(await CacheManagerInternals.GetCacheAsync(name).ConfigureAwait(false)); }
/// <summary> /// Adds or sets a cache by name /// This method is to be used during application initialization, it does not delete or replace the cache if already in use! /// </summary> /// <param name="name"></param> /// <param name="cache"></param> /// <remarks>Cache name can end with wildcard '*'</remarks> public static void SetCache(string name, ICache cache) { CacheManagerInternals.SetCache(name, cache); }
/// <summary> /// Removes a cache registration with a given name. /// This method is to be used during application initialization, it does not delete or replace the cache if already in use! /// </summary> /// <param name="name"></param> public static void RemoveCache(string name) { CacheManagerInternals.RemoveCache(name); }
/// <summary>Associates a cache with a notifier</summary> /// <param name="cache"></param> /// <param name="notifier"></param> public static void Associate(ICache cache, ICacheNotifier notifier) { CacheManagerInternals.Associate(cache, notifier); }
/// <summary>Gets the notifier that was associated with a cahe</summary> /// <param name="cache"></param> /// <returns></returns> public static ICacheNotifier GetAssociatedNotifier(ICache cache) { return(CacheManagerInternals.GetAssociatedNotifier(cache)); }
/// <summary>Gets a connection string by name</summary> /// <remarks>For better performance, store the result in client class</remarks> public static ICacheConnectionString GetConnectionString(string name) { return(CacheManagerInternals.GetConnectionString(name)); }
/// <summary>Gets a notifier by name</summary> /// <remarks>For better performance, store the result in client class</remarks> public static ICacheNotifier GetNotifier(string name) { return(CacheManagerInternals.GetNotifier(name)); }
/// <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)); }
/// <summary>Gets a cache instance using full name of calling method's class</summary> /// <remarks>For better performance, store the result in client class</remarks> public static ICache GetCurrentClassCache() { return(CacheManagerInternals.GetCurrentClassCache()); }
/// <summary> /// Removes all cache registrations with any given name. /// This method is to be used during application initialization, it does not delete or replace the cache if already in use! /// </summary> public static void RemoveAllCaches() { CacheManagerInternals.RemoveAllCaches(); }
/// <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>()); }
/// <summary> /// Adds or sets a cache by name /// This method is to be used during application initialization, it does not delete or replace the cache if already in use! /// </summary> /// <param name="name"></param> /// <param name="connectionString"></param> /// <remarks>Cache name can end with wildcard '*'</remarks> public static void SetConnectionString(string name, ICacheConnectionString connectionString) { CacheManagerInternals.SetConnectionString(name, connectionString); }
/// <summary>Gets a list of all cache names</summary> /// <remarks>For better performance, store the result in client class</remarks> public static IEnumerable <string> GetCacheNames() { return(CacheManagerInternals.GetCacheNames()); }
/// <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)); }