Object reference

SharedStore

The SharedStore object, its operations, examples and notes.

Object description

SharedStore is a process-wide, memory-only key/value store. Stores with the same namespace share values across ZPE runtimes in the same process.

Availability: SharedStore was added in ZPE 1.14.11.

Example

YASS
$store = new SharedStore("chat")
$store->set("message", "Hello")
print($store->get("message"))

Object functions