PHP 클래스 Snc\RedisBundle\Profiler\Storage\RedisProfilerStorage

This class is a reimplementation of the RedisProfilerStorage class from Symfony 2.8
저자: Andrej Hudec ([email protected])
저자: Stephane PY ([email protected])
저자: Gijs van Lammeren ([email protected])
상속: implements Symfony\Component\HttpKernel\Profiler\ProfilerStorageInterface
파일 보기 프로젝트 열기: snc/SncRedisBundle

보호된 프로퍼티들

프로퍼티 타입 설명
$lifetime integer TTL for profiler data (in seconds).
$redis Predis\Client | Redis The redis client.

공개 메소드들

메소드 설명
__construct ( Client | Redis $redis, integer $lifetime = 86400 ) 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.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Client | Redis $redis, integer $lifetime = 86400 )
$redis Predis\Client | Redis Redis database connection
$lifetime integer The lifetime to use for the purge

appendValue() 보호된 메소드

Appends data to an existing item on the Redis server.
protected appendValue ( string $key, string $value, integer $expiration ) : boolean
$key string
$value string
$expiration integer
리턴 boolean

createProfileFromData() 보호된 메소드

Creates a Profile.
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

delete() 보호된 메소드

Removes the specified keys.
protected delete ( array $keys ) : boolean
$keys array
리턴 boolean

find() 공개 메소드

public find ( $ip, $url, $limit, $method, $start = null, $end = null )

getIndexName() 보호된 메소드

Gets the name of the index.
protected getIndexName ( ) : string
리턴 string

getItemName() 보호된 메소드

Gets the item name.
protected getItemName ( string $token ) : string
$token string
리턴 string

getValue() 보호된 메소드

Retrieves an item from the Redis server.
protected getValue ( string $key, integer $serializer = self::REDIS_SERIALIZER_NONE ) : mixed
$key string
$serializer integer
리턴 mixed

isItemNameValid() 보호된 메소드

Check if the item name is valid.
protected isItemNameValid ( string $name ) : boolean
$name string
리턴 boolean

prefixKey() 보호된 메소드

Prefixes the key.
protected prefixKey ( string $key ) : string
$key string
리턴 string

purge() 공개 메소드

public purge ( )

read() 공개 메소드

public read ( $token )

setValue() 보호된 메소드

Stores an item on the Redis server under the specified key.
protected setValue ( string $key, mixed $value, integer $expiration, integer $serializer = self::REDIS_SERIALIZER_NONE ) : boolean
$key string
$value mixed
$expiration integer
$serializer integer
리턴 boolean

write() 공개 메소드

public write ( Symfony\Component\HttpKernel\Profiler\Profile $profile )
$profile Symfony\Component\HttpKernel\Profiler\Profile

프로퍼티 상세

$lifetime 보호되어 있는 프로퍼티

TTL for profiler data (in seconds).
protected int $lifetime
리턴 integer

$redis 보호되어 있는 프로퍼티

The redis client.
protected Client,Predis|Redis $redis
리턴 Predis\Client | Redis