Why few keys dont have ttl in redis?

Hello i notificed few keys have no ttls that means that will remain forever But those are not not required forever right? some optimisation should be there :betterauth:
No description
5 Replies
varundeva
varundevaOP5mo ago
@bekacru im using secondary db redis
Ping
Ping5mo ago
I don't think Better Auth handles the redis calls, instead our docs suggests that the users do that. Maybe you can modify your code to add TTL if you wanted it?
varundeva
varundevaOP5mo ago
oh i just added secondaryStorage and redis get set method in betterauth config. just to prevent multiple call to primary db. which pulls session. session record has ttl . few other records showing on screenshot has not ttl .
varundeva
varundevaOP5mo ago
Here i loggedin and loggedout multiple times using social login. session data having the ttl. login logout url shows as key which is not having any ttl.
No description
varundeva
varundevaOP5mo ago
Its the config added for secondary Database
No description

Did you find this page helpful?