Property | Type | Description | |
---|---|---|---|
$lifetime | integer | TTL for profiler data (in seconds). | |
$redis | The redis client. |
Method | Description | |
---|---|---|
__construct ( |
Constructor. | |
find ( $ip, $url, $limit, $method, $start = null, $end = null ) | ||
purge ( ) | ||
read ( $token ) | ||
write ( Symfony\Component\HttpKernel\Profiler\Profile $profile ) |
Method | Description | |
---|---|---|
appendValue ( string $key, string $value, integer $expiration ) : boolean | Appends data to an existing item on the Redis server. | |
createProfileFromData ( string $token, array $data, Symfony\Component\HttpKernel\Profiler\Profile $parent = null ) : Symfony\Component\HttpKernel\Profiler\Profile | Creates a Profile. | |
delete ( array $keys ) : boolean | Removes the specified keys. | |
getIndexName ( ) : string | Gets the name of the index. | |
getItemName ( string $token ) : string | Gets the item name. | |
getValue ( string $key, integer $serializer = self::REDIS_SERIALIZER_NONE ) : mixed | Retrieves an item from the Redis server. | |
isItemNameValid ( string $name ) : boolean | Check if the item name is valid. | |
prefixKey ( string $key ) : string | Prefixes the key. | |
setValue ( string $key, mixed $value, integer $expiration, integer $serializer = self::REDIS_SERIALIZER_NONE ) : boolean | Stores an item on the Redis server under the specified key. |
public __construct ( |
||
$redis | Redis database connection | |
$lifetime | integer | The lifetime to use for the purge |
protected createProfileFromData ( string $token, array $data, Symfony\Component\HttpKernel\Profiler\Profile $parent = null ) : Symfony\Component\HttpKernel\Profiler\Profile | ||
$token | string | |
$data | array | |
$parent | Symfony\Component\HttpKernel\Profiler\Profile | |
return | Symfony\Component\HttpKernel\Profiler\Profile |
protected getIndexName ( ) : string | ||
return | string |
protected getItemName ( string $token ) : string | ||
$token | string | |
return | string |
protected isItemNameValid ( string $name ) : boolean | ||
$name | string | |
return | boolean |
public write ( Symfony\Component\HttpKernel\Profiler\Profile $profile ) | ||
$profile | Symfony\Component\HttpKernel\Profiler\Profile |
protected int $lifetime | ||
return | integer |