Class KVStore

Package

google-cloud-kvstore!

Constructors

(constructor)(dataset)

constructor(dataset: DataSet);

Constructs a new instance of the KVStore class

Parameter
TypeNameDescription
DataSetdataset

Properties

dataset

dataset: DataSet;
Property Value
TypeDescription
DataSet

Methods

delete(key)

delete(key: Key): Promise<void>;
Parameter
TypeNameDescription
Keykey
Returns
TypeDescription
Promise<void>

delete(key, callback)

delete(key: Key, callback: DeleteCallback): void;
Parameters
TypeNameDescription
Keykey
DeleteCallbackcallback
Returns
TypeDescription
void

get(key)

get(key: Key): Promise<Entity>;
Parameter
TypeNameDescription
Keykey
Returns
TypeDescription
Promise<Entity>

get(key, callback)

get(key: Key, callback: GetCallback): void;
Parameters
TypeNameDescription
Keykey
GetCallbackcallback
Returns
TypeDescription
void

set(key, value)

set(key: Key, value: Value): Promise<void>;
Parameters
TypeNameDescription
Keykey
Valuevalue
Returns
TypeDescription
Promise<void>

set(key, value, callback)

set(key: Key, value: Value, callback: SetCallback): void;
Parameters
TypeNameDescription
Keykey
Valuevalue
SetCallbackcallback
Returns
TypeDescription
void