|
Essential Kit
|
Object represents a container to store key-value pairs.
Public Member Functions | |
| KeyValueDataStore (string savePath) | |
| Create a new instance. | |
| bool | GetBool (string key, bool defaultValue=default) |
| Returns the boolean value associated with the specified key. | |
| long | GetLong (string key, long defaultValue=default) |
| Returns the long value associated with the specified key. | |
| double | GetDouble (string key, double defaultValue=default) |
| Returns the double value associated with the specified key. | |
| string | GetString (string key, string defaultValue=default) |
| Returns the string value associated with the specified key. | |
| byte[] | GetByteArray (string key, byte[] defaultValue=default) |
| Returns the byte array object associated with the specified key. | |
| IDictionary | GetSnapshot () |
| Returns the complete snapshot of data. | |
| void | SetBool (string key, bool value) |
| Sets a boolean value for the specified key in the data store. | |
| void | SetLong (string key, long value) |
| Sets a long value for the specified key in the data store. | |
| void | SetDouble (string key, double value) |
| Sets a double value for the specified key in the data store. | |
| void | SetString (string key, string value) |
| Sets a string value for the specified key in the data store. | |
| void | SetByteArray (string key, byte[] value) |
| Sets a byte array value for the specified key in the data store. | |
| void | Synchronize () |
| Explicitly synchronizes in-memory data with those stored on disk. | |
| void | Clear () |
| Removes all the entries from the data store. | |
| bool | RemoveKey (string key) |
| Removes the value associated with the specified key from the data store. | |
| KeyValueDataStore | ( | string | savePath | ) |
| savePath | The file path to save contents. |
| bool GetBool | ( | string | key, |
| bool | defaultValue = default ) |
| key | A string used to identify the value stored in the data store. |
| defaultValue | Default value. |
| long GetLong | ( | string | key, |
| long | defaultValue = default ) |
| key | A string used to identify the value stored in the data store. |
| defaultValue | Default value. |
| double GetDouble | ( | string | key, |
| double | defaultValue = default ) |
| key | A string used to identify the value stored in the data store. |
| defaultValue | Default value. |
| string GetString | ( | string | key, |
| string | defaultValue = default ) |
| key | A string used to identify the value stored in the data store. |
| defaultValue | Default value. |
| byte[] GetByteArray | ( | string | key, |
| byte[] | defaultValue = default ) |
| key | A string used to identify the value stored in the data store. |
| defaultValue | Default value. |
| IDictionary GetSnapshot | ( | ) |
| void SetBool | ( | string | key, |
| bool | value ) |
| key | The key under which to store the value. |
| value | The boolean value to store. |
Referenced by CloudServices.SetBool().
| void SetLong | ( | string | key, |
| long | value ) |
| key | The key under which to store the value. |
| value | The long value to store. |
Referenced by CloudServices.SetLong().
| void SetDouble | ( | string | key, |
| double | value ) |
| key | The key under which to store the value. |
| value | The double value to store. |
Referenced by CloudServices.SetDouble().
| void SetString | ( | string | key, |
| string | value ) |
| key | The key under which to store the value. |
| value | The string value to store. |
Referenced by CloudServices.SetString().
| void SetByteArray | ( | string | key, |
| byte[] | value ) |
| key | The key under which to store the value. |
| value | The long value to store. |
Referenced by CloudServices.SetByteArray().
| bool RemoveKey | ( | string | key | ) |
| key | The key corresponding to the value you want to remove. |
Referenced by CloudServices.RemoveKey().