2using System.Collections.Generic;
12 private static readonly Dictionary<Guid, ICache> caches =
new Dictionary<Guid, ICache>();
14 internal static void Register(Guid Guid,
ICache Cache)
22 internal static bool Unregister(Guid Guid)
26 return caches.
Remove(Guid);
46 List<ICache> Result =
new List<ICache>();
59 return Result.ToArray();
74 public static void ClearAll(
bool ExcludeStandalone)
Implements an in-memory cache.
bool Standalone
If cache is a standalone cache, or if it can be managed collectively with other caches.
ICollection< ValueType > Values
Values in cache.
bool Remove(KeyType Key)
Removes an item from the cache.
void Clear()
Clears the cache.
Repository of all active caches.
static ICache[] GetCaches()
Gets active caches.
static void ClearAll()
Clears all active caches.
static void ClearAll(bool ExcludeStandalone)
Clears all active caches.
static ICache[] GetCaches(bool ExcludeStandalone)
Gets active caches.