Class ValkeyGlideListCommands

java.lang.Object
io.valkey.springframework.data.valkey.connection.valkeyglide.ValkeyGlideListCommands
All Implemented Interfaces:
ValkeyListCommands

public class ValkeyGlideListCommands extends Object implements ValkeyListCommands
Implementation of ValkeyListCommands for Valkey-Glide.
Since:
2.0
Author:
Ilia Kolominsky
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.valkey.springframework.data.valkey.connection.ValkeyListCommands

    ValkeyListCommands.Direction, ValkeyListCommands.Position
  • Constructor Summary

    Constructors
    Constructor
    Description
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    bLMove(byte[] sourceKey, byte[] destinationKey, ValkeyListCommands.Direction from, ValkeyListCommands.Direction to, double timeout)
    Atomically returns and removes the first/last element (head/tail depending on the from argument) of the list stored at sourceKey, and pushes the element at the first/last element (head/tail depending on the to argument) of the list stored at destinationKey.
    List<byte[]>
    bLPop(int timeout, byte[]... keys)
    Removes and returns first element from lists stored at keys.
    List<byte[]>
    bRPop(int timeout, byte[]... keys)
    Removes and returns last element from lists stored at keys.
    byte[]
    bRPopLPush(int timeout, byte[] srcKey, byte[] dstKey)
    Remove the last element from list at srcKey, append it to dstKey and return its value.
    byte[]
    lIndex(byte[] key, long index)
    Get element at index form list at key.
    lInsert(byte[] key, ValkeyListCommands.Position where, byte[] pivot, byte[] value)
    lLen(byte[] key)
    Get the size of list stored at key.
    byte[]
    lMove(byte[] sourceKey, byte[] destinationKey, ValkeyListCommands.Direction from, ValkeyListCommands.Direction to)
    Atomically returns and removes the first/last element (head/tail depending on the from argument) of the list stored at sourceKey, and pushes the element at the first/last element (head/tail depending on the to argument) of the list stored at destinationKey.
    byte[]
    lPop(byte[] key)
    Removes and returns first element in list stored at key.
    List<byte[]>
    lPop(byte[] key, long count)
    Removes and returns first elements in list stored at key.
    lPos(byte[] key, byte[] element, Integer rank, Integer count)
    Returns the index of matching elements inside the list stored at given key.
    lPush(byte[] key, byte[]... values)
    Prepend values to key.
    lPushX(byte[] key, byte[] value)
    Prepend values to key only if the list exists.
    List<byte[]>
    lRange(byte[] key, long start, long end)
    Get elements between start and end from list at key.
    lRem(byte[] key, long count, byte[] value)
    Removes the first count occurrences of value from the list stored at key.
    void
    lSet(byte[] key, long index, byte[] value)
    Set the value list element at index.
    void
    lTrim(byte[] key, long start, long end)
    Trim list at key to elements between start and end.
    byte[]
    rPop(byte[] key)
    Removes and returns last element in list stored at key.
    List<byte[]>
    rPop(byte[] key, long count)
    Removes and returns last elements in list stored at key.
    byte[]
    rPopLPush(byte[] srcKey, byte[] dstKey)
    Remove the last element from list at srcKey, append it to dstKey and return its value.
    rPush(byte[] key, byte[]... values)
    Append values to key.
    rPushX(byte[] key, byte[] value)
    Append values to key only if the list exists.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.valkey.springframework.data.valkey.connection.ValkeyListCommands

    lPos