Jaymon / caches

Python caching backed by Redis
MIT License
6 stars 3 forks source link

ttl should be cast to an int #9

Closed Jaymon closed 2 years ago

Jaymon commented 4 years ago

This can be done by making a get_ttl() method that is something like this:

def get_ttl(self):
    return int(self.ttl)

and anytime the expire time is going to be sent to redis you should then just call this method.