Packages

final class HashCommands[K, V] extends AnyRef

Exposes the set of redis hash commands.

Does not yet support incrByFloat

Source
HashCommands.scala
See also

Hash commands reference.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HashCommands
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hDel(key: K, field: K): Task[Boolean]
  11. def hDel(key: K, fields: List[K]): Task[Long]

    Delete one or more hash fields.

    Delete one or more hash fields.

    returns

    Number of fields that were removed from the hash, not including specified but non existing fields.

    See also

    HDEL.

  12. def hExists(key: K, field: K): Task[Boolean]

    Determine if a hash field exists.

    Determine if a hash field exists.

    returns

    True if the hash contains the field. False if the hash does not contain the field, or key does not exist. .

    See also

    HEXISTS.

  13. def hGet(key: K, field: K): Task[Option[V]]

    Get the value of a hash field.

    Get the value of a hash field.

    returns

    The value associated with field, or null when field is not present in the hash or key does not exist. A failed task with NoSuchElementException will be returned when the underlying api returns an empty publisher. i.e: when the key did not exist.

    See also

    HGET.

  14. def hGetAll(key: K): Observable[(K, V)]

    Get all the fields and values in a hash.

    Get all the fields and values in a hash.

    key

    the key

    returns

    Map of the fields and their values stored in the hash, or an empty list when key does not exist.

    See also

    HDEL.

  15. def hIncrBy(key: K, field: K, amount: Double): Task[Double]

    Increment the float value of a hash field by the given amount.

    Increment the float value of a hash field by the given amount.

    returns

    Value of the field after the increment operation.

    See also

    INCRBYFLOAT.

  16. def hIncrBy(key: K, field: K, amount: Long): Task[Long]

    Increment the integer value of a hash field by the given number.

    Increment the integer value of a hash field by the given number.

    returns

    Value of the field after the increment operation.

    See also

    HINCRBY.

  17. def hKeys(key: K): Observable[K]

    Get all the fields in a hash.

    Get all the fields in a hash.

    returns

    The fields in the hash.

    See also

    HKEYS.

  18. def hLen(key: K): Task[Long]

    Get the number of fields in a hash.

    Get the number of fields in a hash.

    returns

    Number of fields in the hash, or 0 when key does not exist.

    See also

    HLEN.

  19. def hMGet(key: K, fields: K*): Observable[(K, Option[V])]

    Get the values of all the given hash fields.

    Get the values of all the given hash fields.

    returns

    Values associated with the given fields.

    See also

    HMGET.

  20. def hMSet(key: K, map: Map[K, V]): Task[Unit]

    Set multiple hash fields to multiple values.

    Set multiple hash fields to multiple values.

    See also

    hmset.

  21. def hSet(key: K, field: K, value: V): Task[Boolean]

    Set the string value of a hash field.

    Set the string value of a hash field.

    returns

    True if field is a new field in the hash and value was set. False if field already exists in the hash and the value was updated.

    See also

    HSET.

  22. def hSetNx(key: K, field: K, value: V): Task[Boolean]

    Set the value of a hash field, only if the field does not exist.

    Set the value of a hash field, only if the field does not exist.

    returns

    True if field is a new field in the hash and value was set. False if field already exists in the hash and the value was updated.

    See also

    HSETNX.

  23. def hStrLen(key: K, field: K): Task[Long]

    Get the string length of the field value in a hash.

    Get the string length of the field value in a hash.

    returns

    Length of the field value, or 0 when field is not present in the hash or key does not exist at all.

    See also

    HSTRLEN.

  24. def hVals(key: K): Observable[V]

    Get all the values in a hash.

    Get all the values in a hash.

    returns

    Values in the hash, or an empty list when key does not exist.

    See also

    HVALS.

  25. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. def toString(): String
    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped