OpcacheStore

Extends \NextEvent\PHPSDK\Store\MemoryStore

Implements StoreInterface and stores its data in a temp file.

If opcache is available, us this to cache temp file for performance improvement.

package

NextEvent\PHPSDK\Store

Methods

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

__construct() 
inherited

Clear full cache

clear() : void
inherited

Delete a value from the cache

delete(string $key) 
inherited

Arguments

$key

string

Clear all expired records from store

expunge() : void
inherited

Retrieve value by key from store

get(string $key) : mixed
inherited

Arguments

$key

string

Response

mixed

Determine the if value corresponding to a provided key exist

has(string $key) : boolean
inherited

Arguments

$key

string

Response

boolean

Add a value by key to store

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

Arguments

$key

string

$value

mixed

$ttl

integer