PHP 클래스 RedisLite

파일 보기 프로젝트 열기: sjardim/Hugopit

보호된 프로퍼티들

프로퍼티 타입 설명
$connection object
$path string
$table string

공개 메소드들

메소드 설명
__construct ( string $path = ":memory:", array $options = [] ) Constructor
decr ( string $key, integer $by = 1 ) : integer Decrement value by x
del ( string $key ) : integer Delete Key(s)
exists ( string $key ) Check if key exists
flushdb ( ) Clear database
get ( string $key, mixed $default = null ) : mixed Get value for specific key
hdel ( string $key ) : integer Delete one or more hash fields
hexists ( string $key, string $field ) : boolean Determine if a hash field exists
hget ( string $key, string $field, mixed $default = null ) : mixed Get the value of a hash field
hgetall ( string $key ) : array Get all the fields and values in a hash
hincrby ( string $key, string $field, integer $by = 1 ) : integer Increment the integer value of a hash field by the given number
hkeys ( string $key ) : array Get all the fields in a hash
hlen ( string $key ) : integer Get the number of fields in a hash
hmget ( string $key ) : array Get the values of all the given hash fields
hmset ( string $key ) Set multiple hash fields to multiple values
hset ( string $key, string $field, mixed $value ) Set the string value of a hash field
hvals ( string $key ) : array Get all the values in a hash
incr ( string $key, integer $by = 1 ) : integer Increment value by x
keys ( string $pattern = null ) : array Get all keys matching a pattern
lindex ( string $key, integer $index ) : mixed Get an element from a list by its index
llen ( string $key ) : integer Count $value items
lpush ( string $key, mixed $value ) : integer Add item to a value (left)
lset ( string $key, integer $index, mixed $value ) : boolean Set the value of an element in a list by its index
rpush ( string $key, mixed $value ) : integer Add item to a value (right)
set ( string $key, mixed $value ) Set value for specific key
type ( string $key ) : string Get value type

보호된 메소드들

메소드 설명
createTable ( )

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( string $path = ":memory:", array $options = [] )
$path string
$options array

createTable() 보호된 메소드

protected createTable ( )

decr() 공개 메소드

Decrement value by x
public decr ( string $key, integer $by = 1 ) : integer
$key string
$by integer
리턴 integer

del() 공개 메소드

Delete Key(s)
public del ( string $key ) : integer
$key string
리턴 integer

exists() 공개 메소드

Check if key exists
public exists ( string $key )
$key string

flushdb() 공개 메소드

Clear database
public flushdb ( )

get() 공개 메소드

Get value for specific key
public get ( string $key, mixed $default = null ) : mixed
$key string
$default mixed
리턴 mixed

hdel() 공개 메소드

Delete one or more hash fields
public hdel ( string $key ) : integer
$key string
리턴 integer

hexists() 공개 메소드

Determine if a hash field exists
public hexists ( string $key, string $field ) : boolean
$key string
$field string
리턴 boolean

hget() 공개 메소드

Get the value of a hash field
public hget ( string $key, string $field, mixed $default = null ) : mixed
$key string
$field string
$default mixed
리턴 mixed

hgetall() 공개 메소드

Get all the fields and values in a hash
public hgetall ( string $key ) : array
$key string
리턴 array

hincrby() 공개 메소드

Increment the integer value of a hash field by the given number
public hincrby ( string $key, string $field, integer $by = 1 ) : integer
$key string
$field string
$by integer
리턴 integer

hkeys() 공개 메소드

Get all the fields in a hash
public hkeys ( string $key ) : array
$key string
리턴 array

hlen() 공개 메소드

Get the number of fields in a hash
public hlen ( string $key ) : integer
$key string
리턴 integer

hmget() 공개 메소드

Get the values of all the given hash fields
public hmget ( string $key ) : array
$key string
리턴 array

hmset() 공개 메소드

Set multiple hash fields to multiple values
public hmset ( string $key )
$key string

hset() 공개 메소드

Set the string value of a hash field
public hset ( string $key, string $field, mixed $value )
$key string
$field string
$value mixed

hvals() 공개 메소드

Get all the values in a hash
public hvals ( string $key ) : array
$key string
리턴 array

incr() 공개 메소드

Increment value by x
public incr ( string $key, integer $by = 1 ) : integer
$key string
$by integer
리턴 integer

keys() 공개 메소드

Get all keys matching a pattern
public keys ( string $pattern = null ) : array
$pattern string
리턴 array

lindex() 공개 메소드

Get an element from a list by its index
public lindex ( string $key, integer $index ) : mixed
$key string
$index integer
리턴 mixed

llen() 공개 메소드

Count $value items
public llen ( string $key ) : integer
$key string
리턴 integer

lpush() 공개 메소드

Add item to a value (left)
public lpush ( string $key, mixed $value ) : integer
$key string
$value mixed
리턴 integer

lset() 공개 메소드

Set the value of an element in a list by its index
public lset ( string $key, integer $index, mixed $value ) : boolean
$key string
$index integer
$value mixed
리턴 boolean

rpush() 공개 메소드

Add item to a value (right)
public rpush ( string $key, mixed $value ) : integer
$key string
$value mixed
리턴 integer

set() 공개 메소드

Set value for specific key
public set ( string $key, mixed $value )
$key string
$value mixed

type() 공개 메소드

Get value type
public type ( string $key ) : string
$key string
리턴 string

프로퍼티 상세

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

protected object $connection
리턴 object

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

protected string $path
리턴 string

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

protected string $table
리턴 string