Project-specific sets storage.

Note: Do not use spaces in any IDs or key names. Entity IDs are shared with other storage IDs.

Constructor

new (srv:Server, p:String, id:Int)

Methods

addObject (id:String, val:Dynamic):Void

Adds a serialized object item to project storage set.

Parameters:

id

Storage set ID.

val

Value object. Will be serialized to JSON.

addString (id:String, val:String):Void

Adds a string item to project storage set.

Parameters:

id

Storage set ID.

val

Value string.

getRandomString (id:String):String

Returns a random string item from project storage set.

Parameters:

id

Storage set ID.

Returns:

Value string.

has (id:String, key:String):Bool

Check if project storage set has this item.

Parameters:

id

Storage set ID.

key

Storage set key.

Returns:

True is this item exists in storage, false otherwise.