Brokers access to the second-level ICache implementation.
| C# | Visual Basic |
public sealed class CacheBroker
Public NotInheritable Class CacheBroker
| All Members | Methods | Fields | |||
| Icon | Member | Description |
|---|---|---|
| Add(Entity) |
Adds an entity to the cache, only if it does not already exist.
| |
| Add(Entity, TimeSpan) |
Add an entity to the cache, only if it does not already exist.
| |
| Contains(Type, Object) |
Determines whether an item with the supplied is in the cache.
| |
| DefaultExpiry |
The default expiry of a cached item.
| |
| Get<(Of <(TEntity>)>)(Object) |
Gets the specified entity from the cache.
| |
| Get(Type, Object) |
Gets the specified entity from the cache.
| |
| Remove(Entity) |
Removes the specified entity from the cache.
| |
| Remove(Type, Object) |
Removes the specified entity from the cache.
| |
| Set(Entity) |
Sets an entity into the cache overwriting any existing entity with the same key.
| |
| Set(Entity, TimeSpan) |
Sets an entity into the cache overwriting any existing entity with the same key.
| |
| Update(Entity) |
Updates the specified entity in the cache.
|
| Object | |
| CacheBroker | |