Add an entity to the cache, only if it does not already exist.
Namespace:
Mindscape.LightSpeed.CachingAssembly: Mindscape.LightSpeed (in Mindscape.LightSpeed.dll)
Version: 4.0.0.0 (4.0.0.0)
Syntax
C# |
---|
public void Add( Entity entity, TimeSpan expiry ) |
Visual Basic (Declaration) |
---|
Public Sub Add ( _ entity As Entity, _ expiry As TimeSpan _ ) |
Parameters
- entity
- Type: Mindscape.LightSpeed..::.Entity
The entity.
- expiry
- Type: System..::.TimeSpan
The interval after which the entity expires and is removed from the cache.