public interface ListOperations<K, V> {
@Nullable
List<V> range(K key, long start, long end);
void trim(K key, long start, long end);
@Nullable
Long size(K key);
@Nullable
Long leftPush(K key, V value);
@Nullable
Long leftPushAll(K key, V... values);
@Nullable
Long leftPushAll(K key, Collection<V> values);
@Nullable
Long leftPushIfPresent(K key, V value);
@Nullable
Long leftPush(K key, V pivot, V value);
@Nullable
Long rightPush(K key, V value);
@Nullable
Long rightPushAll(K key, V... values);
@Nullable
Long rightPushAll(K key, Collection<V> values);
@Nullable
Long rightPushIfPresent(K key, V value);
@Nullable
Long rightPush(K key, V pivot, V value);
// ...
}