[This is preliminary documentation and is subject to change.]

Adds a new object by key.

Namespace: fCraft
Assembly: fCraft (in fCraft.dll) Version: 0.6.2.4 (0.6.2.4)

Syntax

   
 C# 
public bool Add(
	string key,
	T payload,
	bool overwriteOnDuplicate
)

Parameters

key
String
Full key.
payload
T
Object associated with the key.
overwriteOnDuplicate
Boolean
Whether to overwrite the value in case this key already exists.

Return Value

True if object was added, false if an entry for this key already exists.

See Also