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:

5 Replies
@bekacru
im using secondary db redis
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?
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 .
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.

Its the config added for secondary Database
