Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想做一些产品来提供键值数据系统。但是本地内存是有限的。所以,我尝试使用 membase 作为数据库。但 membase 是缓存。我担心存储在 membase 中的数据是否消失。我可以使用 membase 作为数据库吗?安全吗?
谢谢你。
只要您使用 Membase 存储桶(在 Membase 中有 memcached 和 Membase 存储桶),那么所有内容都将保存到磁盘。如果磁盘上的项目数大于内存可容纳的项目数,则只有最近使用的项目才会保存在内存中。
此外,建议您的工作集适合内存。如果您的工作集大于内存,那么 Membase 将开始受到性能影响。
Membase 也非常安全。它在许多关键任务生产系统中运行。例如,Zynga 使用它为 Farmville 供电。