martinrusev / django-redis-sessions

Session backend for Django that stores sessions in a Redis database
BSD 3-Clause "New" or "Revised" License
495 stars 106 forks source link

Fixed redis SETEX data type #30

Closed nimnull closed 7 years ago

nimnull commented 9 years ago

According trace from NewRelic, django tries to give session expirity value as float value. But Redis accepts only integer values for SETEX command:

invalid expire time in SETEX
'expires_time'  1427526823.33