3 ms·
Yep, but I believe you have to handle persisting to disk yourself (there might be a Redis-like solution to this that I'm not aware of, though).
by ericd 16y ago
Yep, but I believe you have to handle persisting to disk yourself (there might be a Redis-like solution to this that I'm not aware of, though).
- astrange 16y agoWhat does Redis do?
- ericd 16y agoIt's an in-memory hash store that is persisted to the disk when possible. Sort of like memcached that can survive restarts and is suitable for long-term storage.
- astrange 16y agoWell, I know that much. Did you mean that Redis just persists when you ask it to? (I was counting that under "you have to do it yourself" and thought it might do something more automatic but still infrequent.)
- ericd 16y agoAh OK. I believe redis persists automatically when it can, from the memory, though I haven't actually used it. With a MySQL memory table, if you want to write to the memory table AND have it persist, you have to keep track of what has changed yourself, and handle writing those things to disk.