Curently, RedisConnection::zrem only accepts a single string as an argument. This means, in order to remove multiple items, the method needs to be called multiple times. Alternatively, one can use the underlying connection via RedisConnection::unnamespaced_borrow_mut, which accepts any ToRedisArgs type. However, then the key is not namespaced.
Solution
Allow RedisConnection::zrem to accept any ToRedisArgs like the other methods in RedisConnection do already.
Also updates other RedisConnection methods that only accept a single string value to accept ToRedisArgs instead.
Problem
Curently,
RedisConnection::zrem
only accepts a single string as an argument. This means, in order to remove multiple items, the method needs to be called multiple times. Alternatively, one can use the underlying connection viaRedisConnection::unnamespaced_borrow_mut
, which accepts anyToRedisArgs
type. However, then the key is not namespaced.Solution
Allow
RedisConnection::zrem
to accept anyToRedisArgs
like the other methods inRedisConnection
do already.Also updates other
RedisConnection
methods that only accept a single string value to acceptToRedisArgs
instead.