\Everyman\Neo4j\CacheVariable

Cache everything locally to the process Values cached this way are not persisted when the process or request ends.

Summary

Methods
Properties
Constants
delete()
get()
set()
No public properties found
No constants found
calculateExpiration()
$items
N/A
No private methods found
No private properties found
N/A

Properties

$items

$items : 

Type

Methods

delete()

delete(string $key) : boolean

Delete a value from the cache

Parameters

string $key

Returns

boolean —

true on success

get()

get(string $key) : mixed

Retrieve a value Returns false if the key does not exist, or the value is false

Parameters

string $key

Returns

mixed

set()

set(string $key, mixed $value, integer $expire) : boolean

Store a value in the cache $expire is specified as an integer: - less than or equal to 2592000 (the number of seconds in 30 days) will be considered an expire time of that many seconds from the current timestamp - Greater than that amount will be considered as literal Unix timestamp values - 0 means "never expire."

Parameters

string $key
mixed $value
integer $expire

Returns

boolean —

true on success

calculateExpiration()

calculateExpiration(integer $expire) : integer

Determine the expiration timestamp

Parameters

integer $expire

Returns

integer