You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it somehow possible to fetch the current expiry time in seconds from the key/value stores such as Redis?
Redis provides a method called TTL to get such information.
The text was updated successfully, but these errors were encountered:
I think at present the only way to do this at present is to access the backend directly and do the ttl query on the underlying Redis object. You can do this with store.backend or store.adapter.backend (the latter most likely). Unfortunately this means that you will have to do any key transformation manually, so it's not a great solution.
We could also look at adding an expiry query to the Moneta interface. This would depend on our being able to implement the feature on other backends.
A roadblock for this is that memcached (one of the main supported stores with native expires support) has no equivalent of Redis' ttl command: memcached/memcached#239
Is it somehow possible to fetch the current expiry time in seconds from the key/value stores such as Redis?
Redis provides a method called TTL to get such information.
The text was updated successfully, but these errors were encountered: