Uses of Interface
org.springframework.data.redis.support.collections.RedisList
Package
Description
Package providing implementations for most of the
java.util
collections on top of Redis.-
Uses of RedisList in org.springframework.data.redis.support.collections
Modifier and TypeMethodDescriptionstatic <E> RedisList<E>
RedisList.create
(String key, RedisOperations<String, E> operations) Constructs a new, uncappedRedisList
instance.static <E> RedisList<E>
RedisList.create
(String key, RedisOperations<String, E> operations, int maxSize) Constructs a newRedisList
instance.static <E> RedisList<E>
RedisList.create
(BoundListOperations<String, E> boundOps) Constructs a new, uncappedDefaultRedisList
instance.static <E> RedisList<E>
RedisList.create
(BoundListOperations<String, E> boundOps, int maxSize) Constructs a newDefaultRedisList
instance.DefaultRedisList.trim
(int start, int end) DefaultRedisList.trim
(long start, long end) RedisList.trim
(int start, int end) Trim list at the bound key to elements betweenstart
andend
.RedisList.trim
(long start, long end) Trim list at the bound key to elements betweenstart
andend
.Modifier and TypeMethodDescriptionDefaultRedisList.moveFirstTo
(RedisList<E> destination, RedisListCommands.Direction destinationPosition) DefaultRedisList.moveFirstTo
(RedisList<E> destination, RedisListCommands.Direction destinationPosition, long timeout, TimeUnit unit) 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 thedestinationPosition
argument) of the list stored atdestination
.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 thedestinationPosition
argument) of the list stored atdestination
.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 thedestinationPosition
argument) of the list stored atdestination
.DefaultRedisList.moveLastTo
(RedisList<E> destination, RedisListCommands.Direction destinationPosition) DefaultRedisList.moveLastTo
(RedisList<E> destination, RedisListCommands.Direction destinationPosition, long timeout, TimeUnit unit) 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 thedestinationPosition
argument) of the list stored atdestination
.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 thedestinationPosition
argument) of the list stored atdestination
.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 thedestinationPosition
argument) of the list stored atdestination
.