object RedisHash extends RedisHash
- Annotations
- @deprecated
- Deprecated
(Since version 0.6.0) use the pure
monix.connect.redis.client.RedisConnection
- Source
- RedisHash.scala
- Alphabetic
- By Inheritance
- RedisHash
- RedisHash
- 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 hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hdel[K, V](key: K, fields: K*)(implicit connection: StatefulRedisConnection[K, V]): 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.
- Definition Classes
- RedisHash
- def hexists[K, V](key: K, field: K)(implicit connection: StatefulRedisConnection[K, V]): 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. .
- Definition Classes
- RedisHash
- def hget[K, V](key: K, field: K)(implicit connection: StatefulRedisConnection[K, V]): Task[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.
- Definition Classes
- RedisHash
- def hgetall[K, V](key: K)(implicit connection: StatefulRedisConnection[K, V]): Observable[KeyValue[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.
- Definition Classes
- RedisHash
- def hincrby[K, V](key: K, field: K, amount: Long)(implicit connection: StatefulRedisConnection[K, V]): 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
The value at field after the increment operation.
- Definition Classes
- RedisHash
- def hincrbyfloat[K, V](key: K, field: K, amount: Double)(implicit connection: StatefulRedisConnection[K, V]): 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
The value of field after the increment.
- Definition Classes
- RedisHash
- def hkeys[K, V](key: K)(implicit connection: StatefulRedisConnection[K, V]): Observable[K]
Get all the fields in a hash.
Get all the fields in a hash.
- returns
The fields in the hash.
- Definition Classes
- RedisHash
- def hlen[K, V](key: K)(implicit connection: StatefulRedisConnection[K, V]): 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.
- Definition Classes
- RedisHash
- def hmget[K, V](key: K, fields: K*)(implicit connection: StatefulRedisConnection[K, V]): Observable[KeyValue[K, 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.
- Definition Classes
- RedisHash
- def hmset[K, V](key: K, map: Map[K, V])(implicit connection: StatefulRedisConnection[K, V]): Task[String]
Set multiple hash fields to multiple values.
Set multiple hash fields to multiple values.
- returns
Simple string reply.
- Definition Classes
- RedisHash
- def hscan[K, V](key: K, scanCursor: ScanCursor)(implicit connection: StatefulRedisConnection[K, V]): Task[MapScanCursor[K, V]]
- Definition Classes
- RedisHash
- def hscan[K, V](key: K)(implicit connection: StatefulRedisConnection[K, V]): Task[MapScanCursor[K, V]]
Incrementally iterate hash fields and associated values.
Incrementally iterate hash fields and associated values.
- returns
Map scan cursor.
- Definition Classes
- RedisHash
- def hset[K, V](key: K, field: K, value: V)(implicit connection: StatefulRedisConnection[K, 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.
- Definition Classes
- RedisHash
- def hsetnx[K, V](key: K, field: K, value: V)(implicit connection: StatefulRedisConnection[K, 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.
- Definition Classes
- RedisHash
- def hstrlen[K, V](key: K, field: K)(implicit connection: StatefulRedisConnection[K, V]): 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.
- Definition Classes
- RedisHash
- def hvals[K, V](key: K)(implicit connection: StatefulRedisConnection[K, V]): 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.
- Definition Classes
- RedisHash
- 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()