Adds an object to the cache

Namespace: BrightstarDB.Caching
Assembly: BrightstarDB (in BrightstarDB.dll) Version: 1.9.0.0 (1.9.0.0)

Syntax

C#
void Insert(
	string key,
	Object o,
	CachePriority cachePriority
)
Visual Basic
Sub Insert ( 
	key As String,
	o As Object,
	cachePriority As CachePriority
)
Visual C++
void Insert(
	String^ key, 
	Object^ o, 
	CachePriority cachePriority
)
F#
abstract Insert : 
        key : string * 
        o : Object * 
        cachePriority : CachePriority -> unit 

Parameters

key
Type: System..::..String
The cache key for the object
o
Type: System..::..Object
The object to be stored. Must be serializable.
cachePriority
Type: BrightstarDB.Caching..::..CachePriority
The priority of the item in the cache

See Also