RdsFieldExpired
class RdsFieldExpired
field过期处理
Constants
TYPE_HASH |
|
TYPE_SET |
|
TYPE_ZSET |
|
Methods
bool
clearExpiredField()
清理过期的field
__destruct()
No description
static bool
setFieldExpireTime(string $key, int|string $field, string $type, string $database = 'default', float|int $expireTime = 3600 * 24)
设置过期时间, 这里设置缓存 KEY 的过期时间
bool
clearHash(string $key, array $fields)
清理hash
bool
clearSet(string $key, array $fields)
清理集合
bool
clearZset(string $key, array $fields)
清理有序集合
Details
at line 37
bool
clearExpiredField()
清理过期的field
at line 49
__destruct()
No description
at line 70
static bool
setFieldExpireTime(string $key, int|string $field, string $type, string $database = 'default', float|int $expireTime = 3600 * 24)
设置过期时间, 这里设置缓存 KEY 的过期时间
at line 88
protected bool
clearHash(string $key, array $fields)
清理hash
at line 101
protected bool
clearSet(string $key, array $fields)
清理集合
at line 114
protected bool
clearZset(string $key, array $fields)
清理有序集合