| Package | Description |
|---|---|
| org.springframework.data.redis.support.collections |
Package providing implementations for most of the
java.util collections on top of Redis. |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultRedisList<E>
Default implementation for
RedisList. |
| Modifier and Type | Method and Description |
|---|---|
static <E> RedisList<E> |
RedisList.create(BoundListOperations<String,E> boundOps)
Constructs a new, uncapped
DefaultRedisList instance. |
static <E> RedisList<E> |
RedisList.create(BoundListOperations<String,E> boundOps,
int maxSize)
Constructs a new
DefaultRedisList instance. |
static <E> RedisList<E> |
RedisList.create(String key,
RedisOperations<String,E> operations)
Constructs a new, uncapped
RedisList instance. |
static <E> RedisList<E> |
RedisList.create(String key,
RedisOperations<String,E> operations,
int maxSize)
Constructs a new
RedisList instance. |
RedisList<E> |
DefaultRedisList.trim(int start,
int end) |
RedisList<E> |
RedisList.trim(int start,
int end)
Trim list at the bound key to elements between
start and end. |
RedisList<E> |
DefaultRedisList.trim(long start,
long end) |
RedisList<E> |
RedisList.trim(long start,
long end)
Trim list at the bound key to elements between
start and end. |
| Modifier and Type | Method and Description |
|---|---|
E |
DefaultRedisList.moveFirstTo(RedisList<E> destination,
RedisListCommands.Direction destinationPosition) |
E |
RedisList.moveFirstTo(RedisList<E> destination,
RedisListCommands.Direction destinationPosition)
Atomically returns and removes the first element of the list stored at the bound key, and pushes the element at the
first/last element (head/tail depending on the
destinationPosition argument) of the list stored
at destination. |
default E |
RedisList.moveFirstTo(RedisList<E> destination,
RedisListCommands.Direction destinationPosition,
Duration timeout)
Atomically returns and removes the first element of the list stored at the bound key, and pushes the element at the
first/last element (head/tail depending on the
destinationPosition argument) of the list stored
at destination. |
E |
DefaultRedisList.moveFirstTo(RedisList<E> destination,
RedisListCommands.Direction destinationPosition,
long timeout,
TimeUnit unit) |
E |
RedisList.moveFirstTo(RedisList<E> destination,
RedisListCommands.Direction destinationPosition,
long timeout,
TimeUnit unit)
Atomically returns and removes the first element of the list stored at the bound key, and pushes the element at the
first/last element (head/tail depending on the
destinationPosition argument) of the list stored
at destination. |
E |
DefaultRedisList.moveLastTo(RedisList<E> destination,
RedisListCommands.Direction destinationPosition) |
E |
RedisList.moveLastTo(RedisList<E> destination,
RedisListCommands.Direction destinationPosition)
Atomically returns and removes the last element of the list stored at the bound key, and pushes the element at the
first/last element (head/tail depending on the
destinationPosition argument) of the list stored
at destination. |
default E |
RedisList.moveLastTo(RedisList<E> destination,
RedisListCommands.Direction destinationPosition,
Duration timeout)
Atomically returns and removes the last element of the list stored at the bound key, and pushes the element at the
first/last element (head/tail depending on the
destinationPosition argument) of the list stored
at destination. |
E |
DefaultRedisList.moveLastTo(RedisList<E> destination,
RedisListCommands.Direction destinationPosition,
long timeout,
TimeUnit unit) |
E |
RedisList.moveLastTo(RedisList<E> destination,
RedisListCommands.Direction destinationPosition,
long timeout,
TimeUnit unit)
Atomically returns and removes the last element of the list stored at the bound key, and pushes the element at the
first/last element (head/tail depending on the
destinationPosition argument) of the list stored
at destination. |
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.