Sets an entity into the cache overwriting any existing entity with the same key.

Namespace:  Mindscape.LightSpeed.Caching
Assembly:  Mindscape.LightSpeed (in Mindscape.LightSpeed.dll)
Version: 4.0.0.0 (4.0.0.0)

Syntax

C#
public void Set(
	Entity entity,
	TimeSpan expiry
)
Visual Basic (Declaration)
Public Sub Set ( _
	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.

See Also