-2

Are both Redis Database and Redis Cache stored in memory and not on disk?

If so what are the major differences between them?

If both are stored in memory only then there should not be much difference between them in speed.

Do we still need Cache?

What are their advantages?

Can the server restart remove all data in the Redis database?

The cache must be deleted.

2
  • Ask 1 specific researched non-duplicate question. How to Ask Help center Commented Apr 15 at 0:29
  • This post is being discussed on meta. Commented Apr 15 at 0:42

1 Answer 1

8

Redis is a product first of all. It's an in-memory data structures store.

Depending on its configurations it can be targeted to different use cases:

  • Database
  • Cache
  • Even message broker

Cloud providers can call this "Cache" meaning that they offer a Redis that is pre-configured to be used as a cache (remove the oldest records when the memory becomes next to be fully utilized, etc). But after you will work with some kind of Redis client that will interact with a remote Redis server.

Sign up to request clarification or add additional context in comments.

2 Comments

HI Mark, Thanks a lot for your reply. I know it has differnt capabilities like Datbase , Cahce and message broker used by Celary. My Question is "If both Redis Database" and "Cache" are stored in Memory and both are super fast the why should I again use Cache. Anyhow let me explore further on this. Upvoted your reply.
Hi Chakra, I think I understood your question. Redis, as an in-memory database is supposed to provide its services over a network. A redis server stands in the network to provide caching services. This way, clients will make network request to it. A local in-memory cache may be used by each client to cache the results to avoid this round trip for the next calls. Several Redis clients implements local memory caching using several algorithms.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.