프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$lifetime | integer | TTL for profiler data (in seconds). | |
$redis | The redis client. |
메소드 | 설명 | |
---|---|---|
__construct ( |
Constructor. | |
find ( $ip, $url, $limit, $method, $start = null, $end = null ) | ||
purge ( ) | ||
read ( $token ) | ||
write ( Symfony\Component\HttpKernel\Profiler\Profile $profile ) |
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | Symfony\Component\HttpKernel\Profiler\Profile |
protected getItemName ( string $token ) : string | ||
$token | string | |
리턴 | string |
protected isItemNameValid ( string $name ) : boolean | ||
$name | string | |
리턴 | boolean |
public write ( Symfony\Component\HttpKernel\Profiler\Profile $profile ) | ||
$profile | Symfony\Component\HttpKernel\Profiler\Profile |