Class KvStore
[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
stringdefaultValue
stringDefault value to be returned if the entry for a given key was not found.
Returns
- string
Value for a given
key
ordefaultValue
if entry was not found.
Set(string, string)
Adds entry to the key-value store.
public static bool Set(string key, string value)
Parameters
Returns
- bool
True if entry was added (not necessarily synced yet). False if the
key
orvalue
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.