Credis
extends Credis_Client
in package
This wraps up some error handling. We're just going for simple nulls here.
Table of Contents
Methods
- __call() : mixed
- dump() : string|null
- hDel() : int|null
- hExists() : bool|null
- hSet() : bool|int|null
- hSetNx() : bool|null
- hStrLen() : int|null
- incrByFloat() : float
- isStandalone() : bool
- Are we using the binary php-redis or not?
- move() : bool
- restore() : mixed
Methods
__call()
public
__call(mixed $name, mixed $args) : mixed
Parameters
- $name : mixed
- $args : mixed
Tags
dump()
public
dump(string $key) : string|null
Parameters
- $key : string
Return values
string|nullhDel()
public
hDel(string $key, string ...$field) : int|null
Parameters
- $key : string
- $field : string
Return values
int|nullhExists()
public
hExists(string $key, string $field) : bool|null
Parameters
- $key : string
- $field : string
Return values
bool|nullhSet()
public
hSet(string $key, string $field, string $value) : bool|int|null
Parameters
- $key : string
- $field : string
- $value : string
Return values
bool|int|nullhSetNx()
public
hSetNx(string $key, string $field, string $value) : bool|null
Parameters
- $key : string
- $field : string
- $value : string
Return values
bool|nullhStrLen()
public
hStrLen(string $key, string $field) : int|null
Parameters
- $key : string
- $field : string
Return values
int|nullincrByFloat()
public
incrByFloat(string $key, float $amount) : float
Parameters
- $key : string
- $amount : float
Return values
floatisStandalone()
Are we using the binary php-redis or not?
public
isStandalone() : bool
Return values
bool —true if no binary, false if ising php-redis
move()
public
move(string $key, int $index) : bool
Parameters
- $key : string
- $index : int
Return values
boolrestore()
public
restore(mixed $key, mixed $ttl, mixed $value, mixed ...$options) : mixed
Parameters
- $key : mixed
- $ttl : mixed
- $value : mixed
- $options : mixed