Laravel cache remaining TTL -


i looking way access remaining ttl of redis key value pair via laravel. don't mind using either cache or redis facades (or else matter).

in api can see how return default ttl - getdefaultcachetime().

i want find remaining ttl.

for reference, redis terminal command ttl mykey

since there's command method on illuminate\redis\database class can run :

redis::command('ttl', ['yourkey']); 

this documented here.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -