+ update RedisList contract
This commit is contained in:
@@ -20,7 +20,6 @@ import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.ListIterator;
|
||||
import java.util.NoSuchElementException;
|
||||
import java.util.Queue;
|
||||
|
||||
import org.springframework.datastore.redis.connection.RedisCommands;
|
||||
|
||||
@@ -29,7 +28,7 @@ import org.springframework.datastore.redis.connection.RedisCommands;
|
||||
*
|
||||
* @author Costin Leau
|
||||
*/
|
||||
public class DefaultRedisList extends AbstractRedisCollection implements RedisList, Queue<String> {
|
||||
public class DefaultRedisList extends AbstractRedisCollection implements RedisList {
|
||||
|
||||
public DefaultRedisList(String key, RedisCommands commands) {
|
||||
super(key, commands);
|
||||
|
||||
@@ -16,14 +16,15 @@
|
||||
package org.springframework.datastore.redis.util;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Queue;
|
||||
|
||||
/**
|
||||
* Redis extension for {@link List} contract. Supports List specific
|
||||
* Redis extension for the {@link List} contract. Supports {@link List} specific
|
||||
* operations backed by Redis commands.
|
||||
*
|
||||
* @author Costin Leau
|
||||
*/
|
||||
public interface RedisList extends RedisCollection, List<String> {
|
||||
public interface RedisList extends RedisCollection, List<String>, Queue<String> {
|
||||
|
||||
List<String> range(int start, int end);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user