miniredis icon indicating copy to clipboard operation
miniredis copied to clipboard

Add Support for GET TTL

Open mahigadamsetty opened this issue 1 year ago • 2 comments

Like the Golang Redis client, which supports getting the TTL of a key, Can we add the same to mini Redis? https://pkg.go.dev/github.com/redis/go-redis/[email protected]#Client.TTL

mahigadamsetty avatar Dec 09 '24 10:12 mahigadamsetty

On Mon, Dec 09, 2024 at 02:36:50AM -0800, mahigadamsetty wrote:

Like the Golang Redis client, which supports getting the TTL of a key, Can we add the same to mini Redis? @.***#Client.TTL

You mean directly? Sure, maybe make a PR? Otherwise I can have a look soon.

alicebob avatar Dec 09 '24 11:12 alicebob

sure I am interested will make a PR

mahigadamsetty avatar Dec 09 '24 16:12 mahigadamsetty