namespace PalGain.Core { /// /// Cache manager interface /// public interface ICacheManager { /// /// Gets or sets the value associated with the specified key. /// /// Type /// The key of the value to get. /// The value associated with the specified key. T Get(string key); /// /// Adds the specified key and object to the cache. /// /// key /// Data /// Cache time void Set(string key, object data, int cacheTime); /// /// Gets a value indicating whether the value associated with the specified key is cached /// /// key /// Result bool IsSet(string key); /// /// Removes the value with the specified key from the cache /// /// /key void Remove(string key); /// /// Removes items by pattern /// /// pattern void RemoveByPattern(string pattern); /// /// Clear all cache data /// void Clear(); } }