RdsPersist
class RdsPersist
Redis 持久化数据
Traits
AppTrait
Constants
TYPE_INSERT |
|
TYPE_UPDATE |
|
Properties
protected Resp | $error | error | from AppTrait |
protected Resp | $success | success | from AppTrait |
Methods
static array
where($table, array $where = [])
获取当前缓存的 where 条件的数据
static
exec()
将redis中的所有数据持久化到数据库 执行将所有表的数据都写入数据库中可使用该方法
static
execTable(string $table = '')
将redis中的指定表的数据持久化到数据库 单独持久化某个表的时候可以使用该方法
static array
calcUpdate(array $former = [], array $update = [])
进行库的更新计算
static
update(string $table = '', array $where = [], array $update = [])
修改队列中的数据,根据条件没有找到的话就创建一条
static bool
insert(string $table = '', array $values = [])
往队列中插入一条数据
Details
in
AppTrait at line 45
bool
setError(string|MessageBag $error)
设置错误
at line 40
static array
where($table, array $where = [])
获取当前缓存的 where 条件的数据
at line 61
static
exec()
将redis中的所有数据持久化到数据库 执行将所有表的数据都写入数据库中可使用该方法
at line 93
static
execTable(string $table = '')
将redis中的指定表的数据持久化到数据库 单独持久化某个表的时候可以使用该方法
at line 107
static array
calcUpdate(array $former = [], array $update = [])
进行库的更新计算
at line 165
static
update(string $table = '', array $where = [], array $update = [])
修改队列中的数据,根据条件没有找到的话就创建一条
at line 219
static bool
insert(string $table = '', array $values = [])
往队列中插入一条数据