kvrocks icon indicating copy to clipboard operation
kvrocks copied to clipboard

[NEW] TTL of member

Open hellower opened this issue 3 years ago • 2 comments

redis> SADD mybasket goods-id
redis> expire mybasket goods-id 10
redis>	1
redis>	expire mybasket goods-id1 goods-id2 goods-id3 10
redis>	3
redis>	sadd myset mem10
redis>	1
redis>	expire myset mem10 5
redis>	1
redis>	ttl myset mem10
redis>	3
redis>	ttl myset mem10
redis>	-2
redis>	smembers myset
redis>	(empty list or set)

This is a feature of redis-enterprise only. (supported data type: SET, ZSET, HASH)

hellower avatar May 31 '21 07:05 hellower

This feature seems really useful in many scenes and supports it shouldn't be hard except having the breaking change. Maybe we can support it in V3, how do you think? @bitleak/kvrocks-core-team

BTW: @hellower welcome to join the slack channel if wants to exchange any thoughts about the kvrocks.

git-hulk avatar May 31 '21 09:05 git-hulk

OK. Let's add this feature request into 3.0 project todo.

ShooterIT avatar Jun 02 '21 14:06 ShooterIT