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

Return Value

bool

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 的过期时间

Parameters

string $key 缓存key
int|string $field field
string $type 缓存类型
string $database 数据库
float|int $expireTime 有效期

Return Value

bool

at line 88
protected bool clearHash(string $key, array $fields)

清理hash

Parameters

string $key key
array $fields 要清理的field

Return Value

bool

at line 101
protected bool clearSet(string $key, array $fields)

清理集合

Parameters

string $key key
array $fields 要清理的field

Return Value

bool

at line 114
protected bool clearZset(string $key, array $fields)

清理有序集合

Parameters

string $key key
array $fields 要清理的field

Return Value

bool