Closed erfantarighi closed 2 months ago
Conceptually looks good.
Comments:
watch
statements. Or could do it as a lua script.Redis.from_url()
, instead of configuring using a dict (or maybe allow both).Thanks for the comments @jkarneges
Well, there are transactions of sorts using multi/exec. I forgot that the python lib does this by default when pipeline mode is used.
I'll merge this but I strongly suggest pipelining the reads too. Otherwise, a single call to get_events()
may do many round trips (e.g. fetching 100 items is 100 round trips).
This change is particularly interesting. Will there be a release available soon with these changes? 5.1.1?
Released 5.2.0 with this change.
I added a RedisStorage class which is faster and more efficient, I strongly recommend using RedisStorage as the default storage. because in high traffic using the Django default database can harm or make the backend slow (MySQL has a connection limit)