Redis 概念:在内存中还是在数据库中? [英] Redis concept: In memory or DB?

查看:72
本文介绍了Redis 概念:在内存中还是在数据库中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基于http://redis.io/topics/faq

Redis 是一个内存中但持久化在磁盘上的数据库.

Redis is an in-memory but persistent on disk database.

那么我可以知道 redis 将键/值保存在内存中还是磁盘中?还是两者都有?

So may I know redis save key/value in memory or in disk? or both?

Redis 写入值时,是否同时写入内存和磁盘?

When writing value in Redis, it write into memory and disk at the same time?

谢谢你的概念.

推荐答案

根据您的配置方式,redis 可以定期将现有状态备份到磁盘,否则,一切都在内存中.

depending on how you configure it, redis can periodically back up the existing state to disk, but otherwise, everything is in memory.

这篇关于Redis 概念:在内存中还是在数据库中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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