\DebugBar\StorageRedisStorage

Stores collected data into Redis

Summary

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

Properties

$redis

$redis : 

Type

$hash

$hash : 

Type

Methods

__construct()

__construct(\Predis\Client  $redis, string  $hash = 'phpdebugbar') 

Parameters

\Predis\Client $redis

Redis Client

string $hash

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(  $meta,   $filters) 

Filter the metadata for matches.

Parameters

$meta
$filters