Click or drag to resize

ICacheApi Methods

The ICacheApi type exposes the following members.

Methods
  Name Description
Public method Code example ContainsKey Determines whether a cache entry exists in the cache.
Public method Code example GetT Returns an entry from the cache.
Public method Code example Remove Removes the specified item from the cache.
Public method Code example 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.
Public method Code example SetT(String, T, TimeSpan) Inserts a cache entry into the cache by using a key and a value and specifies time-based expiration details.
Public method Code example 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.
Public method Code example TryGetT Get item from cached if return true, otherwise it returns false
Top
See Also