redis-doc icon indicating copy to clipboard operation
redis-doc copied to clipboard

SETEX does not show TTL as related

Open gnbl opened this issue 3 years ago • 3 comments

https://redis.io/commands/setex/ (https://github.com/redis/redis-doc/edit/master/commands/setex.md) does not list "TTL" in "Related commands" despite using it in the example.

gnbl avatar Aug 03 '22 18:08 gnbl

Hi @gnbl

Currently, the "Related Commands" are all commands that belong to the same group as the command itself. SETEX belongs to the "string" group, whereas TTL is a generic keyspace operation that belongs to the "generic" group.

I hope this makes sense and resolves the issue.

itamarhaber avatar Aug 07 '22 11:08 itamarhaber

Hi, if that's by design, fine - but for me as new redis user it would make sense to include TTL due to its "timeout" relation. Maybe extend "Related Commands" to offer other relations? Just an idea. Feel free to close!

gnbl avatar Aug 07 '22 12:08 gnbl

@itamarhaber, I can edit as part of the restructure, since we intend to add Related at the bottom

nermiller avatar Aug 16 '22 20:08 nermiller