批量操作redis中的 keys的方法:
1.统计个数:
redis中名称含有OMP_OFFLINE的key的个数;
redis-cli keys “*OMP_OFFLINE*” | wc -l
2.批量删除
批量删除 0号数据库中名称含有OMP_OFFLINE的key: redis-cli -n 0 keys “*OMP_OFFLINE*” | xargs redis-cli -n 0 del
注意 - 你可以用以下 HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
昵称
邮箱
网址
在此浏览器中保存我的显示名称、邮箱地址和网站地址,以便下次评论时使用。
Δ
0 条评论。