Constructor #
Kuzzle's memory storage is a data store separate from the database layer. It uses Redis internally, and most of its underlying functions are exposed by Kuzzle.
MemoryStorage(Kuzzle) #
Arguments | Type | Description |
---|---|---|
Kuzzle | object | An instantiated Kuzzle SDK object |
Usage #
<?php
use \Kuzzle\Kuzzle;
use \Kuzzle\MemoryStorage;
$kuzzle = new Kuzzle('localhost');
// using the static instance
$memoryStorage = $kuzzle->memoryStorage();
// or instantiating a new MemoryStorage object
$memoryStorage = new MemoryStorage($kuzzle);
Edit this page on Github(opens new window)