I am using the stackexchange redis.extension.core 5.5
I have used such syntax
_redisCacheClient.Db0.Get<T>(key);
Please let me know if you know something.
I am using the stackexchange redis.extension.core 5.5
I have used such syntax
_redisCacheClient.Db0.Get<T>(key);
Please let me know if you know something.
2
Answers
Redis TTL command will return number of seconds left for the key to be expired. I’m not aware of stackexchange API but it should allow you to run this command. Check the API for TTL command.
Believe you can use
KeyTimeToLive
. See the implementation here.