首页
科技
登录
6mi
u
盘
搜
搜 索
科技
redis的key过期时间
redis的key过期时间
it
2022-05-05
116
public
void
set
(
String
key
,
String
value
,
int
liveTime
){
this
.
set
(
key
,
value
);
this
.
getJedis
().
expire
(
key
,
liveTime
);
}
通过设置key的淘汰时间来决定key的存储策略
转载于:https://www.cnblogs.com/panxuejun/p/6028891.html
转载请注明原文地址: https://win8.8miu.com/read-6674.html
专利
最新回复
(
0
)