\Everyman\Neo4j\CacheMemcache

Use the Memcache extension

Summary

Methods
Properties
Constants
__construct()
delete()
get()
set()
No public properties found
No constants found
No protected methods found
$memcache
N/A
No private methods found
No private properties found
N/A

Properties

$memcache

$memcache : 

Type

Methods

__construct()

__construct(\Everyman\Neo4j\Cache\Memcache $memcache)

Initialize the Memcache connection

Parameters

\Everyman\Neo4j\Cache\Memcache $memcache

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