Contract for a second-level cache implementation.
| C# | Visual Basic |
public interface ICache
Public Interface ICache
| All Members | Methods | ||||
| Icon | Member | Description |
|---|---|---|
| AddItem(String, Object, TimeSpan) |
Adds an item into the cache, only if it does not already exist.
| |
| GetItem(String) |
Gets an item from the cache.
| |
| RemoveItem(String) |
Removes the specified item from the cache.
| |
| SetItem(String, Object, TimeSpan) |
Sets an item into the cache overwriting any existing item with the same key.
|