final class HashCommands[K, V] extends AnyRef
Exposes the set of redis hash commands.
Does not yet support incrByFloat
- Source
- HashCommands.scala
- See also
- Alphabetic
- By Inheritance
- HashCommands
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hDel(key: K, field: K): Task[Boolean]
- 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.
- 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
- 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.
- 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.
- 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
- 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
- def hKeys(key: K): Observable[K]
Get all the fields in a hash.
- 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.
- 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
- 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
- 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.
- 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
- 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
- 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
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()