Suor / django-cacheops

A slick ORM cache with automatic granular event-driven invalidation.
BSD 3-Clause "New" or "Revised" License
2.12k stars 227 forks source link

[fix] conj keys always have -1 as expiration in redis 7 #477

Closed shubhamagrawal1906 closed 4 months ago

shubhamagrawal1906 commented 5 months ago

[fix] conj keys always have -1 as expiration in Redis 7 The issue in redis.call('expire', conj_key, timeout, 'gt' when setting up the value of ttl if its value is -1 then this function call won't work.

Suor commented 4 months ago

Simply reverting to Redis 4 code should be both simpler and more efficient. Also, in absence of a test this might break again )

Suor commented 4 months ago

Fixed in 6e37725f6f0a610006f9d20e55021445974ef65e