Table of Contents

Class KvStore

Namespace
Coherence.Runtime
Assembly
Coherence.Runtime.dll
[Obsolete("You should use the CloudService instance from CoherenceBridge to communicate with the coherence Cloud.")]
public static class KvStore
Inheritance
KvStore

Methods

Get(string, string)

Returns a value for a given key.

public static string Get(string key, string defaultValue = null)

Parameters

key string
defaultValue string

Default value to be returned if the entry for a given key was not found.

Returns

string

Value for a given key or defaultValue if entry was not found.

Set(string, string)

Adds entry to the key-value store.

public static bool Set(string key, string value)

Parameters

key string
value string

Returns

bool

True if entry was added (not necessarily synced yet). False if the key or value are invalid.

Unset(string)

Removes entry from the key-value store.

public static bool Unset(string key)

Parameters

key string

Returns

bool

True if an entry was removed, false otherwise.