+ properly implement clear for list (unfortunately through 2 commands)

This commit is contained in:
Costin Leau
2010-11-10 19:48:48 +02:00
parent 8fad1abc96
commit 28d58ba8bb

View File

@@ -80,7 +80,7 @@ public class DefaultRedisList<E> extends AbstractRedisCollection<E> implements R
@Override
public void clear() {
commands.lTrim(key, 0, -1);
commands.lTrim(key, size() + 1, 0);
}
@Override