ICacheApi Methods

Methods

ContainsKey Determines whether a cache entry exists in the cache.
GetT Returns an entry from the cache.
Remove Removes the specified item from the cache.
SetT(String, T) Inserts a cache entry into the cache by using a key and a value with default expiration time which is 15 minutes.
SetT(String, T, TimeSpan) Inserts a cache entry into the cache by using a key and a value and specifies time-based expiration details.
SetT(String, T, TimeSpan, Boolean) Inserts a cache entry into the cache by using a key and a value and specifies whether it is for sliding expiration or time-based expiration.
TryGetT Get item from cached if return true, otherwise it returns false

See Also