database - 寻找不在内存中且具有 "list,set"数据类型的键值数据库

标签 database nosql redis key-value key-value-store

<分区>

我正在使用 Redis 来存储请求高的信息,但我想将请求较少的内容存储在磁盘上的列表/集中。我一直在环顾四周,没有运气。 Memcached、Riak 等似乎没有列表/设置数据类型。是否有具有这些功能的数据库?

谢谢。

最佳答案

运行另一个 Redis 实例并将其配置为开启 AOF。仅追加文件。

您可以在这里阅读更多相关信息:

http://redis.io/topics/persistence

向下滚动一半,上面有很多有用的信息。

Append-only file Snapshotting is not very durable. If your computer running Redis stops, your power line fails, or you accidentally kill -9 your instance, the latest data written on Redis will get lost. While this may not be a big deal for some applications, there are use cases for full durability, and in these cases Redis was not a viable option. The append-only file is an alternative, fully-durable strategy for Redis. It became available in version 1.1. You can turn on the AOF in your configuration file: appendonly yes From now on, every time Redis receives a command that changes the dataset (e.g. SET) it will append it to the AOF. When you restart Redis it will re-play the AOF to rebuild the state.

关于database - 寻找不在内存中且具有 "list,set"数据类型的键值数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14716197/

相关文章:

node.js - Sails.js 在给定时间或每天结束时使 session 过期

linux - Redis Windows fork 是否因为使用内存映射文件而使用更少的 RAM?

ruby-on-rails - Ruby on Rails Oracle 数据库连接

php - while循环将值插入数据库?

mongodb - NoSQL 文档数据库——除了可扩展性之外,还有什么好的用例?

database - 使用复合索引通过查询参数的多个组合进行查询的最佳方法?

redis - 无论集群模式如何,所有(不包括分区)Radisson 功能都有效吗?

sql-server - 如何判断数据库是否被更改?

sql - Oracle中的十六进制序列

firebase - ElasticSearch:防止小写索引