Packages

c

play.api.cache.redis.impl

RedisListJavaImpl

class RedisListJavaImpl[Elem] extends AsyncRedisList[Elem]

Linear Supertypes
AsyncRedisList[Elem], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RedisListJavaImpl
  2. AsyncRedisList
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new RedisListJavaImpl(internal: RedisList[Elem, Future])(implicit runtime: RedisRuntime)

Type Members

  1. class AsyncRedisListModificationJavaImpl extends AsyncRedisListModification[Elem]
  2. class AsyncRedisListViewJavaImpl extends AsyncRedisListView[Elem]

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def This: RedisListJavaImpl[Elem]
  5. def append(element: Elem): CompletionStage[AsyncRedisList[Elem]]

    Insert all the specified values at the tail of the list stored at key.

    Insert all the specified values at the tail of the list stored at key. If key does not exist, it is created as empty list before performing the push operation. When key holds a value that is not a list, an error is returned. * It is possible to push multiple elements using a single command call just specifying multiple arguments at the end of the command. Elements are inserted one after the other to the tail of the list, from the leftmost element to the rightmost element. So for instance the command RPUSH mylist a b c will result into a list containing a as first element, b as second element and c as third element.

    element

    to be apended

    returns

    this collection to chain commands

    Definition Classes
    RedisListJavaImplAsyncRedisList
  6. def apply(index: Int): CompletionStage[Elem]

    Returns the element at index index in the list stored at key.

    Returns the element at index index in the list stored at key. The index is zero-based, so 0 means the first element, 1 the second element and so on. Negative indices can be used to designate elements starting at the tail of the list. Here, -1 means the last element, -2 means the penultimate and so forth. When the value at key is not a list, an error is returned.

    Time complexity: O(N) where N is the number of elements to traverse to get to the element at index. This makes asking for the first or the last element of the list O(1).

    index

    position of the element

    returns

    element at the index or exception

    Definition Classes
    RedisListJavaImplAsyncRedisList
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. def get(index: Int): CompletionStage[Optional[Elem]]

    Returns the element at index index in the list stored at key.

    Returns the element at index index in the list stored at key. The index is zero-based, so 0 means the first element, 1 the second element and so on. Negative indices can be used to designate elements starting at the tail of the list. Here, -1 means the last element, -2 means the penultimate and so forth. When the value at key is not a list, an error is returned.

    Time complexity: O(N) where N is the number of elements to traverse to get to the element at index. This makes asking for the first or the last element of the list O(1).

    index

    position of the element

    returns

    Some(element) at the index, None if no element exists, or exception when the value is not a list

    Definition Classes
    RedisListJavaImplAsyncRedisList
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def head(): CompletionStage[Elem]

    returns

    first element of the collection or an exception

    Definition Classes
    AsyncRedisList
  16. def headOption(): CompletionStage[Optional[Elem]]

    returns

    first element of the collection or None

    Definition Classes
    AsyncRedisList
  17. def headPop(): CompletionStage[Optional[Elem]]

    Removes and returns the first element of the list stored at key.

    Removes and returns the first element of the list stored at key.

    Time complexity: O(1)

    returns

    head element if exists

    Definition Classes
    RedisListJavaImplAsyncRedisList
  18. def insertBefore(pivot: Elem, element: Elem): CompletionStage[Optional[Long]]

    Inserts value in the list stored at key either before the reference value pivot.

    Inserts value in the list stored at key either before the reference value pivot. When key does not exist, it is considered an empty list and no operation is performed. An error is returned when key exists but does not hold a list value.

    Time complexity: O(N) where N is the number of elements to traverse before seeing the value pivot. This means that inserting somewhere on the left end on the list (head) can be considered O(1) and inserting somewhere on the right end (tail) is O(N).

    pivot

    insert before this value

    element

    elements to be inserted

    returns

    new size of the collection or None if pivot not found

    Definition Classes
    RedisListJavaImplAsyncRedisList
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. def last(): CompletionStage[Elem]

    returns

    last element of the collection or an exception

    Definition Classes
    AsyncRedisList
  21. def lastOption(): CompletionStage[Optional[Elem]]

    returns

    last element of the collection or None

    Definition Classes
    AsyncRedisList
  22. def modify(): AsyncRedisListModification[Elem]

    returns

    write-only operations over the collection, modify data

    Definition Classes
    RedisListJavaImplAsyncRedisList
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. def prepend(element: Elem): CompletionStage[AsyncRedisList[Elem]]

    Insert all the specified values at the head of the list stored at key.

    Insert all the specified values at the head of the list stored at key. If key does not exist, it is created as empty list before performing the push operations. When key holds a value that is not a list, an error is returned.

    It is possible to push multiple elements using a single command call just specifying multiple arguments at the end of the command. Elements are inserted one after the other to the head of the list, from the leftmost element to the rightmost element. So for instance the command LPUSH mylist a b c will result into a list containing c as first element, b as second element and a as third element.

    element

    element to be prepended

    returns

    this collection to chain commands

    Definition Classes
    RedisListJavaImplAsyncRedisList
  27. def remove(element: Elem, count: Int): CompletionStage[AsyncRedisList[Elem]]

    Removes first N values equal to the given value from the list.

    Removes first N values equal to the given value from the list.

    Note: If the value is serialized object, it is not proofed that serialized strings will match and the value will be actually deleted. This function is intended to be used with primitive types only.

    Time complexity: O(N)

    element

    element to be removed from the list

    count

    first N occurrences

    returns

    this collection to chain commands

    Definition Classes
    RedisListJavaImplAsyncRedisList
  28. def remove(element: Elem): CompletionStage[AsyncRedisList[Elem]]

    Removes first value equal to the given value from the list.

    Removes first value equal to the given value from the list.

    Note: If the value is serialized object, it is not proofed that serialized strings will match and the value will be actually deleted. This function is intended to be used with primitive types only.

    Time complexity: O(N)

    element

    element to be removed from the list

    returns

    this collection to chain commands

    Definition Classes
    RedisListJavaImplAsyncRedisList
  29. def removeAt(position: Int): CompletionStage[AsyncRedisList[Elem]]

    Removes the element at the given position.

    Removes the element at the given position. If the index is out of range, it throws an exception.

    Time complexity: O(N)

    position

    element index to be removed

    returns

    this collection to chain commands

    Definition Classes
    RedisListJavaImplAsyncRedisList
  30. def set(position: Int, element: Elem): CompletionStage[AsyncRedisList[Elem]]

    Sets the list element at index to value.

    Sets the list element at index to value. For more information on the index argument, see LINDEX. An error is returned for out of range indexes.

    position

    position to insert at

    element

    elements to be inserted

    returns

    this collection to chain commands

    Definition Classes
    RedisListJavaImplAsyncRedisList
  31. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  32. def toList(): CompletionStage[List[Elem]]

    returns

    Helper to this.view.all returning all object in the list

    Definition Classes
    AsyncRedisList
  33. def toString(): String
    Definition Classes
    AnyRef → Any
  34. def view(): AsyncRedisListView[Elem]

    returns

    read-only operations over the collection, does not modify data

    Definition Classes
    RedisListJavaImplAsyncRedisList
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AsyncRedisList[Elem]

Inherited from AnyRef

Inherited from Any

Ungrouped