Adds a new item to the cache

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

Syntax

C#
public void Insert(
	string key,
	byte[] data,
	CachePriority cachePriority
)
Visual Basic
Public Sub Insert ( 
	key As String,
	data As Byte(),
	cachePriority As CachePriority
)
Visual C++
public:
virtual void Insert(
	String^ key, 
	array<unsigned char>^ data, 
	CachePriority cachePriority
) sealed
F#
abstract Insert : 
        key : string * 
        data : byte[] * 
        cachePriority : CachePriority -> unit 
override Insert : 
        key : string * 
        data : byte[] * 
        cachePriority : CachePriority -> unit 

Parameters

key
Type: System..::..String
The cache key for the item
data
Type: array<System..::..Byte>[]()[][]
The data to be stored as a byte array
cachePriority
Type: BrightstarDB.Caching..::..CachePriority
The priority of the item in the cache

Implements

ICache..::..Insert(String, array<Byte>[]()[][], CachePriority)

See Also