trait HashOps extends HashApi
- Alphabetic
- By Inheritance
- HashOps
- HashApi
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hdel(key: Any, field: Any, fields: Any*)(implicit format: Format): Option[Long]
- def hexists(key: Any, field: Any)(implicit format: Format): Boolean
- def hget[A](key: Any, field: Any)(implicit format: Format, parse: Parse[A]): Option[A]
- def hgetall[K, V](key: Any)(implicit format: Format, parseK: Parse[K], parseV: Parse[V]): Option[Map[K, V]]
- def hgetall1[K, V](key: Any)(implicit format: Format, parseK: Parse[K], parseV: Parse[V]): Option[Map[K, V]]
- def hincrby(key: Any, field: Any, value: Long)(implicit format: Format): Option[Long]
- def hincrbyfloat(key: Any, field: Any, value: Float)(implicit format: Format): Option[Float]
- def hkeys[A](key: Any)(implicit format: Format, parse: Parse[A]): Option[List[A]]
- def hlen(key: Any)(implicit format: Format): Option[Long]
- def hmget[K, V](key: Any, fields: K*)(implicit format: Format, parseV: Parse[V]): Option[Map[K, V]]
-
def
hmset(key: Any, map: Iterable[Product2[Any, Any]])(implicit format: Format): Boolean
Sets the specified fields to their respective values in the hash stored at key.
Sets the specified fields to their respective values in the hash stored at key. This command overwrites any existing fields in the hash. If key does not exist, a new key holding a hash is created.
- map
from fields to values
- returns
Trueif operation completed successfully,Falseotherwise.
-
def
hscan[A](key: Any, cursor: Int, pattern: Any, count: Int)(implicit format: Format, parse: Parse[A]): Option[(Option[Int], Option[List[Option[A]]])]
Incrementally iterate hash fields and associated values (since 2.8)
-
def
hset1(key: Any, field: Any, value: Any)(implicit format: Format): Option[Long]
Sets
fieldin the hash stored atkeytovalue.Sets
fieldin the hash stored atkeytovalue. Ifkeydoes not exist, a new key holding a hash is created. If field already exists in the hash, it is overwritten.- returns
Some(0)iffieldis a new field in the hash and value was set,Some(1)iffieldalready exists in the hash and the value was updated.
-
def
hsetnx(key: Any, field: Any, value: Any)(implicit format: Format): Boolean
Sets
fieldin the hash stored atkeytovalue, only if field does not yet exist.Sets
fieldin the hash stored atkeytovalue, only if field does not yet exist. If key does not exist, a new key holding a hash is created. If field already exists, this operation has no effect.- returns
Trueiffieldis a new field in the hash and value was set. False iffieldexists in the hash and no operation was performed.
- def hvals[A](key: Any)(implicit format: Format, parse: Parse[A]): Option[List[A]]
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
Deprecated Value Members
-
def
hset(key: Any, field: Any, value: Any)(implicit format: Format): Boolean
Sets
fieldin the hash stored atkeytovalue.Sets
fieldin the hash stored atkeytovalue. Ifkeydoes not exist, a new key holding a hash is created. If field already exists in the hash, it is overwritten.- returns
Trueiffieldis a new field in the hash and value was set,Falseiffieldalready exists in the hash and the value was updated.
- Definition Classes
- HashOps → HashApi
- Deprecated
return value semantics is inconsistent with com.redis.HashOperations#hsetnx and com.redis.HashOperations#hmset. Use com.redis.HashOperations#hset1 instead
- See also