\DebugBar\StorageMemcachedStorage

Stores collected data into Memcache using the Memcached extension

Summary

Methods
Properties
Constants
__construct()
save()
get()
find()
clear()
No public properties found
No constants found
filter()
createKey()
$memcached
$keyNamespace
N/A
No private methods found
No private properties found
N/A

Properties

$memcached

$memcached : 

Type

$keyNamespace

$keyNamespace : 

Type

Methods

__construct()

__construct(\Memcached  $memcached,   $keyNamespace = 'phpdebugbar') 

Parameters

\Memcached $memcached
$keyNamespace

save()

save(string  $id, string  $data) 

Saves collected data

Parameters

string $id
string $data

get()

get(string  $id) : array

Returns collected data with the specified id

Parameters

string $id

Returns

array

find()

find(array  $filters = array(), integer  $max = 20, integer  $offset) : array

Returns a metadata about collected data

Parameters

array $filters
integer $max
integer $offset

Returns

array

clear()

clear() 

Clears all the collected data

filter()

filter(array  $meta, array  $filters) : boolean

Filter the metadata for matches.

Parameters

array $meta
array $filters

Returns

boolean

createKey()

createKey(string  $id) : string

Parameters

string $id

Returns

string