PHP 클래스 Snc\RedisBundle\Tests\Profiler\Storage\Mock\RedisMock

저자: Andrej Hudec ([email protected])
파일 보기 프로젝트 열기: snc/SncRedisBundle 1 사용 예제들

공개 메소드들

메소드 설명
append ( string $key, string $value ) : integer Append data to an existing item.
close ( ) : boolean Close Redis server connection.
connect ( string $host, integer $port = 6379, float $timeout ) : boolean Add a server to connection pool.
del ( string | array $key ) : integer Remove specified keys.
exists ( string $key ) : boolean Verify if the specified key exists.
expire ( string $key, integer $ttl ) : boolean Sets an expiration time on an item.
flushAll ( ) : boolean Flush all existing items from all databases at the server.
get ( string $key ) : boolean Retrieve item from the server.
select ( $dbnum )
setex ( string $key, integer $ttl, mixed $value ) : boolean Store data at the server with expiration time.

비공개 메소드들

메소드 설명
getData ( $key )
storeData ( $key, $value )

메소드 상세

append() 공개 메소드

Append data to an existing item.
public append ( string $key, string $value ) : integer
$key string
$value string
리턴 integer Size of the value after the append

close() 공개 메소드

Close Redis server connection.
public close ( ) : boolean
리턴 boolean

connect() 공개 메소드

Add a server to connection pool.
public connect ( string $host, integer $port = 6379, float $timeout ) : boolean
$host string
$port integer
$timeout float
리턴 boolean

del() 공개 메소드

Remove specified keys.
public del ( string | array $key ) : integer
$key string | array
리턴 integer

exists() 공개 메소드

Verify if the specified key exists.
public exists ( string $key ) : boolean
$key string
리턴 boolean

expire() 공개 메소드

Sets an expiration time on an item.
public expire ( string $key, integer $ttl ) : boolean
$key string
$ttl integer
리턴 boolean

flushAll() 공개 메소드

Flush all existing items from all databases at the server.
public flushAll ( ) : boolean
리턴 boolean

get() 공개 메소드

Retrieve item from the server.
public get ( string $key ) : boolean
$key string
리턴 boolean

select() 공개 메소드

public select ( $dbnum )

setex() 공개 메소드

Store data at the server with expiration time.
public setex ( string $key, integer $ttl, mixed $value ) : boolean
$key string
$ttl integer
$value mixed
리턴 boolean