MemoryStore

Implements \NextEvent\PHPSDK\Store\StoreInterface

Stores data in memory as long as process is active

package

NextEvent\PHPSDK\Store

Methods

Construct an empty MemoryStore, which stores the data in memory during the request

__construct() 

Clear full cache

clear() : void

Delete a value from the cache

delete(string $key) 

Arguments

$key

string

Clear all expired records from store

expunge() : void

Retrieve value by key from store

get(string $key) : mixed

Arguments

$key

string

Response

mixed

Determine the if value corresponding to a provided key exist

has(string $key) : boolean

Arguments

$key

string

Response

boolean

Add a value by key to store

set(string $key, mixed $value, integer $ttl = null) : void

Arguments

$key

string

$value

mixed

$ttl

integer