Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between django-redis-cache and django-redis for redis caching with Django?

I noticed that there are two different projects for using redis for django cache

https://github.com/sebleier/django-redis-cache/

https://github.com/niwibe/django-redis

Is one better known than the other, more of a standard package? I can't decide which to use.

like image 615
aris Avatar asked Feb 21 '14 10:02

aris


People also ask

What is Redis cache in Django?

Redis is an in-memory data structure store that can be used as a caching engine. Since it keeps data in RAM, Redis can deliver it very quickly. Redis is not the only product that we can use for caching.

What is the difference between Redis and cache?

When deciding whether to use Redis or Memcached a major difference between these two is data persistence. While Redis is an in-memory (mostly) data store and it is not volatile, Memcached is an in-memory cache and it is volatile.

What types of caching mechanisms are Django supported?

For convenience, Django offers different levels of cache granularity: You can cache the output of specific views, you can cache only the pieces that are difficult to produce, or you can cache your entire site. Django also works well with “downstream” caches, such as Squid and browser-based caches.

What is Redis and Redis cache?

What is Redis? Redis, which stands for Remote Dictionary Server, is a fast, open source, in-memory, key-value data store. The project started when Salvatore Sanfilippo, the original developer of Redis, wanted to improve the scalability of his Italian startup.


1 Answers

I am currently using django-redis as cache backend for Redis. I haven't used django-redis-cache so far, but what made me take the decision to use django-redis are the following:

  • Modular client system (pluggable clients).
  • Some of the pluggable clients come out of the box (shard client, herd client, etc.)
  • Master-Slave support in the default client.
  • Facilities for raw access to Redis client/connection pool (very useful).
  • Better documented.

On django-redis documentation site, you can find more reasons to consider it. What I can tell from my experience so far is that I am very happy with django-redis.

like image 172
Martin Avatar answered Sep 19 '22 05:09

Martin