In redis, is it possible to set a maximum number of elements to a set so when one use the sadd
, the redis server prevents the set from having more elements that a maximum amount? e.g. something like :
127.0.0.1:6379> SETSIZE KEY 100
Thanks in advance.