正则表达式在memcached密钥上? [英] Regex on memcached key?

查看:80
本文介绍了正则表达式在memcached密钥上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以基于某些正则表达式获取memcached密钥列表?我知道一种解决方案是将密钥存储在数据库中,并在需要删除这些密钥时获取列表.这意味着它将为数据库带来额外的费用.

Is it possible to grab a list of memcached key based on some regex? I understand that one solution is to store the key in the database and grab the list when I need to delete those keys. This means that, it is going to incur additional cost to the db.

我想知道是否还有另一种方法可以减少数据库开销.

I was wondering if there is another way to do it without DB overhead.

干杯, 米奇

推荐答案

否,无法做到这一点.该文档建议了一种模拟名称空间的方法,仅此而已.

No, there's no way to do that. The documentation suggests a way to simulate a namespace, but that's it.

这篇关于正则表达式在memcached密钥上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆