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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -