com.redis.cluster

RedisCluster

class RedisCluster extends RedisClusterOps with WithHashRing[IdentifiableRedisClientPool] with BaseOps with NodeOps with StringOps with ListOps with SetOps with SortedSetOps with EvalOps with HashOps

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RedisCluster
  2. HashOps
  3. HashApi
  4. EvalOps
  5. EvalApi
  6. SortedSetOps
  7. SortedSetApi
  8. SetOps
  9. SetApi
  10. ListOps
  11. ListApi
  12. StringOps
  13. StringApi
  14. NodeOps
  15. NodeApi
  16. BaseOps
  17. BaseApi
  18. WithHashRing
  19. RedisClusterOps
  20. AutoCloseable
  21. AnyRef
  22. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RedisCluster(hosts: List[ClusterNode], keyTag: Option[KeyTag])

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val POINTS_PER_SERVER: Int

    Attributes
    protected[com.redis.cluster]
    Definition Classes
    RedisClusterOps
  7. def addServer(server: ClusterNode): Try[Unit]

    add server to internal pool

    add server to internal pool

    Definition Classes
    RedisClusterRedisClusterOps
  8. def append(key: Any, value: Any)(implicit format: Format): Option[Long]

    appends the key value with the specified value.

    appends the key value with the specified value.

    Definition Classes
    StringOpsStringApi
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def auth(secret: Any)(implicit format: Format): Boolean

    auths with the server.

    auths with the server.

    Definition Classes
    BaseOpsBaseApi
  11. def bgrewriteaof: Boolean

    Definition Classes
    NodeOpsNodeApi
  12. def bgsave: Boolean

    save the DB in the background.

    save the DB in the background.

    Definition Classes
    NodeOpsNodeApi
  13. def bitcount(key: Any, range: Option[(Int, Int)])(implicit format: Format): Option[Int]

    Count the number of set bits in the given key within the optional range

    Count the number of set bits in the given key within the optional range

    Definition Classes
    StringOpsStringApi
  14. def bitop(op: String, destKey: Any, srcKeys: Any*)(implicit format: Format): Option[Int]

    Perform a bitwise operation between multiple keys (containing string values) and store the result in the destination key.

    Perform a bitwise operation between multiple keys (containing string values) and store the result in the destination key.

    Definition Classes
    StringOpsStringApi
  15. def blpop[K, V](timeoutInSeconds: Int, key: K, keys: K*)(implicit format: Format, parseK: Parse[K], parseV: Parse[V]): Option[(K, V)]

    Definition Classes
    ListOpsListApi
  16. def brpop[K, V](timeoutInSeconds: Int, key: K, keys: K*)(implicit format: Format, parseK: Parse[K], parseV: Parse[V]): Option[(K, V)]

    Definition Classes
    ListOpsListApi
  17. def brpoplpush[A](srcKey: Any, dstKey: Any, timeoutInSeconds: Int)(implicit format: Format, parse: Parse[A]): Option[A]

    Definition Classes
    ListOpsListApi
  18. val clients: List[IdentifiableRedisClientPool]

    Attributes
    protected[com.redis.cluster]
  19. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. def close(): Unit

    Definition Classes
    RedisCluster → AutoCloseable
  21. def dbsize: Option[Long]

    returns the size of the db.

    returns the size of the db.

    Definition Classes
    BaseOpsBaseApi
  22. def decr(key: Any)(implicit format: Format): Option[Long]

    decrements the specified key by 1

    decrements the specified key by 1

    Definition Classes
    StringOpsStringApi
  23. def decrby(key: Any, increment: Long)(implicit format: Format): Option[Long]

    decrements the specified key by increment

    decrements the specified key by increment

    Definition Classes
    StringOpsStringApi
  24. def del(key: Any, keys: Any*)(implicit format: Format): Option[Long]

    deletes the specified keys.

    deletes the specified keys.

    Definition Classes
    BaseOpsBaseApi
  25. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  26. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  27. def evalBulk[A](luaCode: String, keys: List[Any], args: List[Any])(implicit format: Format, parse: Parse[A]): Option[A]

    Definition Classes
    EvalOpsEvalApi
  28. def evalInt(luaCode: String, keys: List[Any], args: List[Any]): Option[Int]

    Definition Classes
    EvalOpsEvalApi
  29. def evalMultiBulk[A](luaCode: String, keys: List[Any], args: List[Any])(implicit format: Format, parse: Parse[A]): Option[List[Option[A]]]

    evaluates lua code on the server.

    evaluates lua code on the server.

    Definition Classes
    EvalOpsEvalApi
  30. def evalMultiSHA[A](shahash: String, keys: List[Any], args: List[Any])(implicit format: Format, parse: Parse[A]): Option[List[Option[A]]]

    Definition Classes
    EvalOpsEvalApi
  31. def evalSHA[A](shahash: String, keys: List[Any], args: List[Any])(implicit format: Format, parse: Parse[A]): Option[A]

    Definition Classes
    EvalOpsEvalApi
  32. def evalSHABulk[A](shahash: String, keys: List[Any], args: List[Any])(implicit format: Format, parse: Parse[A]): Option[A]

    Definition Classes
    EvalOpsEvalApi
  33. def exists(key: Any)(implicit format: Format): Boolean

    test if the specified key exists.

    test if the specified key exists.

    Definition Classes
    BaseOpsBaseApi
  34. def expire(key: Any, ttl: Int)(implicit format: Format): Boolean

    sets the expire time (in sec.

    sets the expire time (in sec.) for the specified key.

    Definition Classes
    BaseOpsBaseApi
  35. def expireat(key: Any, timestamp: Long)(implicit format: Format): Boolean

    sets the expire time for the specified key.

    sets the expire time for the specified key.

    Definition Classes
    BaseOpsBaseApi
  36. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  37. def flushall: Boolean

    removes data from all the DB's.

    removes data from all the DB's.

    Definition Classes
    BaseOpsBaseApi
  38. def flushdb: Boolean

    removes all the DB data.

    removes all the DB data.

    Definition Classes
    BaseOpsBaseApi
  39. def get[A](key: Any)(implicit format: Format, parse: Parse[A]): Option[A]

    gets the value for the specified key.

    gets the value for the specified key.

    Definition Classes
    StringOpsStringApi
  40. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  41. def getConfig(key: Any)(implicit format: Format): Option[Map[String, Option[String]]]

    CONFIG GET

    CONFIG GET

    Definition Classes
    BaseOpsBaseApi
  42. def getType(key: Any)(implicit format: Format): Option[String]

    returns the type of the value stored at key in form of a string.

    returns the type of the value stored at key in form of a string.

    Definition Classes
    BaseOpsBaseApi
  43. def getbit(key: Any, offset: Int)(implicit format: Format): Option[Int]

    Returns the bit value at offset in the string value stored at key

    Returns the bit value at offset in the string value stored at key

    Definition Classes
    StringOpsStringApi
  44. def getrange[A](key: Any, start: Int, end: Int)(implicit format: Format, parse: Parse[A]): Option[A]

    Returns the substring of the string value stored at key, determined by the offsets start and end (both are inclusive).

    Returns the substring of the string value stored at key, determined by the offsets start and end (both are inclusive).

    Definition Classes
    StringOpsStringApi
  45. def getset[A](key: Any, value: Any)(implicit format: Format, parse: Parse[A]): Option[A]

    is an atomic set this value and return the old value command.

    is an atomic set this value and return the old value command.

    Definition Classes
    StringOpsStringApi
  46. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  47. def hdel(key: Any, field: Any, fields: Any*)(implicit format: Format): Option[Long]

    Definition Classes
    HashOpsHashApi
  48. def hexists(key: Any, field: Any)(implicit format: Format): Boolean

    Definition Classes
    HashOpsHashApi
  49. def hget[A](key: Any, field: Any)(implicit format: Format, parse: Parse[A]): Option[A]

    Definition Classes
    HashOpsHashApi
  50. def hgetall[K, V](key: Any)(implicit format: Format, parseK: Parse[K], parseV: Parse[V]): Option[Map[K, V]]

    Definition Classes
    HashOpsHashApi
  51. def hgetall1[K, V](key: Any)(implicit format: Format, parseK: Parse[K], parseV: Parse[V]): Option[Map[K, V]]

    Definition Classes
    HashOpsHashApi
  52. def hincrby(key: Any, field: Any, value: Long)(implicit format: Format): Option[Long]

    Definition Classes
    HashOpsHashApi
  53. def hincrbyfloat(key: Any, field: Any, value: Float)(implicit format: Format): Option[Float]

    Definition Classes
    HashOpsHashApi
  54. def hkeys[A](key: Any)(implicit format: Format, parse: Parse[A]): Option[List[A]]

    Definition Classes
    HashOpsHashApi
  55. def hlen(key: Any)(implicit format: Format): Option[Long]

    Definition Classes
    HashOpsHashApi
  56. def hmget[K, V](key: Any, fields: K*)(implicit format: Format, parseV: Parse[V]): Option[Map[K, V]]

    Definition Classes
    HashOpsHashApi
  57. 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

    True if operation completed successfully, False otherwise.

    Definition Classes
    HashOpsHashApi
    See also

    HMSET documentation

  58. val hosts: List[ClusterNode]

    Attributes
    protected
  59. val hr: HashRing[IdentifiableRedisClientPool]

    Attributes
    protected[com.redis.cluster]
    Definition Classes
    RedisClusterWithHashRing
  60. 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.

    Incrementally iterate hash fields and associated values (since 2.8)

    Definition Classes
    HashOpsHashApi
  61. def hset1(key: Any, field: Any, value: Any)(implicit format: Format): Option[Long]

    Sets field in the hash stored at key to value.

    Sets field in the hash stored at key to value. If key does not exist, a new key holding a hash is created. If field already exists in the hash, it is overwritten.

    returns

    Some(0) if field is a new field in the hash and value was set, Some(1) if field already exists in the hash and the value was updated.

    Definition Classes
    HashOpsHashApi
    See also

    HSET documentation

  62. def hsetnx(key: Any, field: Any, value: Any)(implicit format: Format): Boolean

    Sets field in the hash stored at key to value, only if field does not yet exist.

    Sets field in the hash stored at key to value, 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

    True if field is a new field in the hash and value was set. False if field exists in the hash and no operation was performed.

    Definition Classes
    HashOpsHashApi
    See also

    HSETNX documentation

  63. def hvals[A](key: Any)(implicit format: Format, parse: Parse[A]): Option[List[A]]

    Definition Classes
    HashOpsHashApi
  64. def inSameNode[T](keys: Any*)(body: (RedisClient) ⇒ T)(implicit format: Format): T

    Attributes
    protected[com.redis.cluster]
    Definition Classes
    RedisClusterOps
  65. def incr(key: Any)(implicit format: Format): Option[Long]

    increments the specified key by 1

    increments the specified key by 1

    Definition Classes
    StringOpsStringApi
  66. def incrby(key: Any, increment: Long)(implicit format: Format): Option[Long]

    increments the specified key by increment

    increments the specified key by increment

    Definition Classes
    StringOpsStringApi
  67. def incrbyfloat(key: Any, increment: Float)(implicit format: Format): Option[Float]

    Definition Classes
    StringOpsStringApi
  68. def info: Option[String]

    The info command returns different information and statistics about the server.

    The info command returns different information and statistics about the server.

    Definition Classes
    NodeOpsNodeApi
  69. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  70. val keyTag: Option[KeyTag]

    Attributes
    protected
    Definition Classes
    RedisClusterRedisClusterOps
  71. def keys[A](pattern: Any)(implicit format: Format, parse: Parse[A]): Option[List[Option[A]]]

    returns all the keys matching the glob-style pattern.

    returns all the keys matching the glob-style pattern.

    Definition Classes
    BaseOpsBaseApi
  72. def lastsave: Option[Long]

    return the UNIX TIME of the last DB SAVE executed with success.

    return the UNIX TIME of the last DB SAVE executed with success.

    Definition Classes
    NodeOpsNodeApi
  73. def lindex[A](key: Any, index: Int)(implicit format: Format, parse: Parse[A]): Option[A]

    return the especified element of the list stored at the specified key.

    return the especified element of the list stored at the specified key. Negative indexes are supported, for example -1 is the last element, -2 the penultimate and so on.

    Definition Classes
    ListOpsListApi
  74. def listServers: List[ClusterNode]

    list all running servers

    list all running servers

    Definition Classes
    RedisClusterRedisClusterOps
  75. def llen(key: Any)(implicit format: Format): Option[Long]

    return the length of the list stored at the specified key.

    return the length of the list stored at the specified key. If the key does not exist zero is returned (the same behaviour as for empty lists). If the value stored at key is not a list an error is returned.

    Definition Classes
    ListOpsListApi
  76. def lpop[A](key: Any)(implicit format: Format, parse: Parse[A]): Option[A]

    atomically return and remove the first (LPOP) or last (RPOP) element of the list

    atomically return and remove the first (LPOP) or last (RPOP) element of the list

    Definition Classes
    ListOpsListApi
  77. def lpush(key: Any, value: Any, values: Any*)(implicit format: Format): Option[Long]

    add values to the head of the list stored at key (Variadic: >= 2.

    add values to the head of the list stored at key (Variadic: >= 2.4)

    Definition Classes
    ListOpsListApi
  78. def lpushx(key: Any, value: Any)(implicit format: Format): Option[Long]

    add value to the head of the list stored at key (Variadic: >= 2.

    add value to the head of the list stored at key (Variadic: >= 2.4)

    Definition Classes
    ListOpsListApi
  79. def lrange[A](key: Any, start: Int, end: Int)(implicit format: Format, parse: Parse[A]): Option[List[Option[A]]]

    return the specified elements of the list stored at the specified key.

    return the specified elements of the list stored at the specified key. Start and end are zero-based indexes.

    Definition Classes
    ListOpsListApi
  80. def lrem(key: Any, count: Int, value: Any)(implicit format: Format): Option[Long]

    Remove the first count occurrences of the value element from the list.

    Remove the first count occurrences of the value element from the list.

    Definition Classes
    ListOpsListApi
  81. def lset(key: Any, index: Int, value: Any)(implicit format: Format): Boolean

    set the list element at index with the new value.

    set the list element at index with the new value. Out of range indexes will generate an error

    Definition Classes
    ListOpsListApi
  82. def ltrim(key: Any, start: Int, end: Int)(implicit format: Format): Boolean

    Trim an existing list so that it will contain only the specified range of elements specified.

    Trim an existing list so that it will contain only the specified range of elements specified.

    Definition Classes
    ListOpsListApi
  83. def mget[A](key: Any, keys: Any*)(implicit format: Format, parse: Parse[A]): Option[List[Option[A]]]

    get the values of all the specified keys.

    get the values of all the specified keys.

    Definition Classes
    StringOpsStringApi
  84. def monitor: Boolean

    is a debugging command that outputs the whole sequence of commands received by the Redis server.

    is a debugging command that outputs the whole sequence of commands received by the Redis server.

    Definition Classes
    NodeOpsNodeApi
  85. def move(key: Any, db: Int)(implicit format: Format): Boolean

    Move the specified key from the currently selected DB to the specified destination DB.

    Move the specified key from the currently selected DB to the specified destination DB.

    Definition Classes
    BaseOpsBaseApi
  86. def mset(kvs: (Any, Any)*)(implicit format: Format): Boolean

    set the respective key value pairs.

    set the respective key value pairs. Overwrite value if key exists

    Definition Classes
    StringOpsStringApi
  87. def msetnx(kvs: (Any, Any)*)(implicit format: Format): Boolean

    set the respective key value pairs.

    set the respective key value pairs. Noop if any key exists

    Definition Classes
    StringOpsStringApi
  88. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  89. def nodeForKey(key: Any)(implicit format: Format): IdentifiableRedisClientPool

    get node for the key

    get node for the key

    Definition Classes
    RedisClusterRedisClusterOps
  90. final def notify(): Unit

    Definition Classes
    AnyRef
  91. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  92. def onAllConns[T](body: (RedisClient) ⇒ T): Iterable[T]

    Attributes
    protected[com.redis.cluster]
    Definition Classes
    RedisClusterRedisClusterOps
  93. def oneCommonAnswerOr[A](r: Iterable[A])(moreResultHandler: (Iterable[A]) ⇒ Option[A]): Option[A]

    Attributes
    protected
    Definition Classes
    EvalOps
  94. def persist(key: Any)(implicit format: Format): Boolean

    Remove the existing timeout on key, turning the key from volatile (a key with an expire set) to persistent (a key that will never expire as no timeout is associated).

    Remove the existing timeout on key, turning the key from volatile (a key with an expire set) to persistent (a key that will never expire as no timeout is associated).

    Definition Classes
    BaseOpsBaseApi
  95. def pexpire(key: Any, ttlInMillis: Int)(implicit format: Format): Boolean

    sets the expire time (in milli sec.

    sets the expire time (in milli sec.) for the specified key.

    Definition Classes
    BaseOpsBaseApi
  96. def pexpireat(key: Any, timestampInMillis: Long)(implicit format: Format): Boolean

    sets the expire timestamp in millis for the specified key.

    sets the expire timestamp in millis for the specified key.

    Definition Classes
    BaseOpsBaseApi
  97. def ping: Option[String]

    ping

    ping

    Definition Classes
    BaseOpsBaseApi
  98. val pong: Option[String]

    Attributes
    protected
    Definition Classes
    BaseApi
  99. def processForKey[T](key: Any)(body: (RedisCommand) ⇒ T)(implicit format: Format): T

    Attributes
    protected[com.redis.cluster]
    Definition Classes
    RedisClusterOps
  100. def processForKeys[T](keys: List[Any])(body: (List[Any]) ⇒ (RedisCommand) ⇒ T)(implicit format: Format): Iterable[T]

    Attributes
    protected[com.redis.cluster]
    Definition Classes
    RedisClusterOps
  101. def psetex(key: Any, expiryInMillis: Long, value: Any)(implicit format: Format): Boolean

    Definition Classes
    StringOpsStringApi
  102. def pttl(key: Any)(implicit format: Format): Option[Long]

    returns the remaining time to live of a key that has a timeout in millis

    returns the remaining time to live of a key that has a timeout in millis

    Definition Classes
    BaseOpsBaseApi
  103. def quit: Boolean

    exits the server.

    exits the server.

    Definition Classes
    BaseOpsBaseApi
  104. val r: Random

    Attributes
    protected
    Definition Classes
    RedisClusterOps
  105. def randomNode(): RedisClientPool

    Attributes
    protected[com.redis.cluster]
    Definition Classes
    RedisClusterRedisClusterOps
  106. def randomkey[A](implicit parse: Parse[A]): Option[A]

    returns a randomly selected key from the currently selected DB.

    returns a randomly selected key from the currently selected DB.

    Definition Classes
    BaseOpsBaseApi
  107. def removeServer(nodename: String): Unit

    remove a server

    remove a server

    Definition Classes
    RedisClusterRedisClusterOps
  108. def rename(oldkey: Any, newkey: Any)(implicit format: Format): Boolean

    atomically renames the key oldkey to newkey.

    atomically renames the key oldkey to newkey.

    Definition Classes
    BaseOpsBaseApi
  109. def renamenx(oldkey: Any, newkey: Any)(implicit format: Format): Boolean

    rename oldkey into newkey but fails if the destination key newkey already exists.

    rename oldkey into newkey but fails if the destination key newkey already exists.

    Definition Classes
    BaseOpsBaseApi
  110. def replaceServer(server: ClusterNode): Unit

    replace a server very useful when you want to replace a server in test mode to one in production mode

    replace a server very useful when you want to replace a server in test mode to one in production mode

    Use Case: Suppose I have a big list of key/value pairs which are replicated in 2 Redis servers - one having test values for every key and the other having production values for the same set of keys. In a cluster using replaceServer I can switch between test mode and production mode without disturbing the hash ring. This gives an additional level of abstraction on the node name decoupling it from the node address.

    Definition Classes
    RedisClusterRedisClusterOps
  111. def rpop[A](key: Any)(implicit format: Format, parse: Parse[A]): Option[A]

    atomically return and remove the first (LPOP) or last (RPOP) element of the list

    atomically return and remove the first (LPOP) or last (RPOP) element of the list

    Definition Classes
    ListOpsListApi
  112. def rpoplpush[A](srcKey: Any, dstKey: Any)(implicit format: Format, parse: Parse[A]): Option[A]

    Remove the first count occurrences of the value element from the list.

    Remove the first count occurrences of the value element from the list.

    Definition Classes
    ListOpsListApi
  113. def rpush(key: Any, value: Any, values: Any*)(implicit format: Format): Option[Long]

    add values to the tail of the list stored at key (Variadic: >= 2.

    add values to the tail of the list stored at key (Variadic: >= 2.4)

    Definition Classes
    ListOpsListApi
  114. def rpushx(key: Any, value: Any)(implicit format: Format): Option[Long]

    add value to the tail of the list stored at key (Variadic: >= 2.

    add value to the tail of the list stored at key (Variadic: >= 2.4)

    Definition Classes
    ListOpsListApi
  115. def sadd(key: Any, value: Any, values: Any*)(implicit format: Format): Option[Long]

    Add the specified members to the set value stored at key.

    Add the specified members to the set value stored at key. (VARIADIC: >= 2.4)

    Definition Classes
    SetOpsSetApi
  116. def save: Boolean

    save the DB on disk now.

    save the DB on disk now.

    Definition Classes
    NodeOpsNodeApi
  117. def scan[A](cursor: Int, pattern: Any, count: Int)(implicit format: Format, parse: Parse[A]): Option[(Option[Int], Option[List[Option[A]]])]

    Incrementally iterate the keys space (since 2.

    Incrementally iterate the keys space (since 2.8)

    Definition Classes
    BaseOpsBaseApi
  118. def scard(key: Any)(implicit format: Format): Option[Long]

    Return the number of elements (the cardinality) of the Set at key.

    Return the number of elements (the cardinality) of the Set at key.

    Definition Classes
    SetOpsSetApi
  119. def scriptExists(shahash: String): Option[Int]

    Definition Classes
    EvalOpsEvalApi
  120. def scriptFlush: Option[String]

    Definition Classes
    EvalOpsEvalApi
  121. def scriptLoad(luaCode: String): Option[String]

    Definition Classes
    EvalOpsEvalApi
  122. def sdiff[A](key: Any, keys: Any*)(implicit format: Format, parse: Parse[A]): Option[Set[Option[A]]]

    Return the difference between the Set stored at key1 and all the Sets key2, .

    Return the difference between the Set stored at key1 and all the Sets key2, ..., keyN.

    Definition Classes
    SetOpsSetApi
  123. def sdiffstore(key: Any, keys: Any*)(implicit format: Format): Option[Long]

    Compute the difference between the Set key1 and all the Sets key2, .

    Compute the difference between the Set key1 and all the Sets key2, ..., keyN, and store the resulting Set at dstkey.

    Definition Classes
    SetOpsSetApi
  124. def select(index: Int): Boolean

    selects the DB to connect, defaults to 0 (zero).

    selects the DB to connect, defaults to 0 (zero).

    Definition Classes
    BaseOpsBaseApi
  125. def set(key: Any, value: Any, whenSet: SetBehaviour = Always, expire: Duration = null)(implicit format: Format): Boolean

    sets the key with the specified value.

    sets the key with the specified value. Starting with Redis 2.6.12 SET supports a set of options that modify its behavior:

    NX -- Only set the key if it does not already exist. XX -- Only set the key if it already exist. PX milliseconds -- Set the specified expire time, in milliseconds.

    Definition Classes
    StringOpsStringApi
  126. def setConfig(key: Any, value: Any)(implicit format: Format): Option[String]

    CONFIG SET

    CONFIG SET

    Definition Classes
    BaseOpsBaseApi
  127. def setbit(key: Any, offset: Int, value: Any)(implicit format: Format): Option[Int]

    Sets or clears the bit at offset in the string value stored at key

    Sets or clears the bit at offset in the string value stored at key

    Definition Classes
    StringOpsStringApi
  128. def setex(key: Any, expiry: Long, value: Any)(implicit format: Format): Boolean

    Definition Classes
    StringOpsStringApi
  129. def setnx(key: Any, value: Any)(implicit format: Format): Boolean

    sets the value for the specified key, only if the key is not there.

    sets the value for the specified key, only if the key is not there.

    Definition Classes
    StringOpsStringApi
  130. def setrange(key: Any, offset: Int, value: Any)(implicit format: Format): Option[Long]

    SETRANGE key offset value Overwrites part of the string stored at key, starting at the specified offset, for the entire length of value.

    SETRANGE key offset value Overwrites part of the string stored at key, starting at the specified offset, for the entire length of value.

    Definition Classes
    StringOpsStringApi
  131. def shutdown: Boolean

    Stop all the clients, save the DB, then quit the server.

    Stop all the clients, save the DB, then quit the server.

    Definition Classes
    NodeOpsNodeApi
  132. def sinter[A](key: Any, keys: Any*)(implicit format: Format, parse: Parse[A]): Option[Set[Option[A]]]

    Return the intersection between the Sets stored at key1, key2, .

    Return the intersection between the Sets stored at key1, key2, ..., keyN.

    Definition Classes
    SetOpsSetApi
  133. def sinterstore(key: Any, keys: Any*)(implicit format: Format): Option[Long]

    Compute the intersection between the Sets stored at key1, key2, .

    Compute the intersection between the Sets stored at key1, key2, ..., keyN, and store the resulting Set at dstkey. SINTERSTORE returns the size of the intersection, unlike what the documentation says refer http://code.google.com/p/redis/issues/detail?id=121

    Definition Classes
    SetOpsSetApi
  134. def sismember(key: Any, value: Any)(implicit format: Format): Boolean

    Test if the specified value is a member of the Set at key.

    Test if the specified value is a member of the Set at key.

    Definition Classes
    SetOpsSetApi
  135. def slaveof(options: Any): Boolean

    The SLAVEOF command can change the replication settings of a slave on the fly.

    The SLAVEOF command can change the replication settings of a slave on the fly.

    Definition Classes
    NodeOpsNodeApi
  136. def smembers[A](key: Any)(implicit format: Format, parse: Parse[A]): Option[Set[Option[A]]]

    Return all the members of the Set value at key.

    Return all the members of the Set value at key.

    Definition Classes
    SetOpsSetApi
  137. def smove(sourceKey: Any, destKey: Any, value: Any)(implicit format: Format): Option[Long]

    Move the specified member from one Set to another atomically.

    Move the specified member from one Set to another atomically.

    Definition Classes
    SetOpsSetApi
  138. def sort[A](key: String, limit: Option[(Int, Int)], desc: Boolean, alpha: Boolean, by: Option[String], get: List[String])(implicit format: Format, parse: Parse[A]): Option[List[Option[A]]]

    sort keys in a set, and optionally pull values for them

    sort keys in a set, and optionally pull values for them

    Definition Classes
    BaseOpsBaseApi
  139. def sortNStore[A](key: String, limit: Option[(Int, Int)], desc: Boolean, alpha: Boolean, by: Option[String], get: List[String], storeAt: String)(implicit format: Format, parse: Parse[A]): Option[Long]

    sort keys in a set, and stores result in the supplied key

    sort keys in a set, and stores result in the supplied key

    Definition Classes
    BaseOpsBaseApi
  140. def spop[A](key: Any, count: Int)(implicit format: Format, parse: Parse[A]): Option[Set[Option[A]]]

    Remove and return multiple random elements (pop) from the Set value at key since (3.

    Remove and return multiple random elements (pop) from the Set value at key since (3.2).

    Definition Classes
    SetOpsSetApi
  141. def spop[A](key: Any)(implicit format: Format, parse: Parse[A]): Option[A]

    Remove and return (pop) a random element from the Set value at key.

    Remove and return (pop) a random element from the Set value at key.

    Definition Classes
    SetOpsSetApi
  142. def srandmember[A](key: Any, count: Int)(implicit format: Format, parse: Parse[A]): Option[List[Option[A]]]

    Return multiple random elements from a Set (since 2.

    Return multiple random elements from a Set (since 2.6)

    Definition Classes
    SetOpsSetApi
  143. def srandmember[A](key: Any)(implicit format: Format, parse: Parse[A]): Option[A]

    Return a random element from a Set

    Return a random element from a Set

    Definition Classes
    SetOpsSetApi
  144. def srem(key: Any, value: Any, values: Any*)(implicit format: Format): Option[Long]

    Remove the specified members from the set value stored at key.

    Remove the specified members from the set value stored at key. (VARIADIC: >= 2.4)

    Definition Classes
    SetOpsSetApi
  145. def sscan[A](key: Any, cursor: Int, pattern: Any, count: Int)(implicit format: Format, parse: Parse[A]): Option[(Option[Int], Option[List[Option[A]]])]

    Incrementally iterate Set elements (since 2.

    Incrementally iterate Set elements (since 2.8)

    Definition Classes
    SetOpsSetApi
  146. def strlen(key: Any)(implicit format: Format): Option[Long]

    gets the length of the value associated with the key

    gets the length of the value associated with the key

    Definition Classes
    StringOpsStringApi
  147. def sunion[A](key: Any, keys: Any*)(implicit format: Format, parse: Parse[A]): Option[Set[Option[A]]]

    Return the union between the Sets stored at key1, key2, .

    Return the union between the Sets stored at key1, key2, ..., keyN.

    Definition Classes
    SetOpsSetApi
  148. def sunionstore(key: Any, keys: Any*)(implicit format: Format): Option[Long]

    Compute the union between the Sets stored at key1, key2, .

    Compute the union between the Sets stored at key1, key2, ..., keyN, and store the resulting Set at dstkey. SUNIONSTORE returns the size of the union, unlike what the documentation says refer http://code.google.com/p/redis/issues/detail?id=121

    Definition Classes
    SetOpsSetApi
  149. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  150. def time[A](implicit format: Format, parse: Parse[A]): Option[List[Option[A]]]

    returns the current server time as a two items lists: a Unix timestamp and the amount of microseconds already elapsed in the current second.

    returns the current server time as a two items lists: a Unix timestamp and the amount of microseconds already elapsed in the current second.

    Definition Classes
    BaseOpsBaseApi
  151. def toString(): String

    Definition Classes
    AnyRef → Any
  152. def ttl(key: Any)(implicit format: Format): Option[Long]

    returns the remaining time to live of a key that has a timeout

    returns the remaining time to live of a key that has a timeout

    Definition Classes
    BaseOpsBaseApi
  153. def unwatch(): Boolean

    Flushes all the previously watched keys for a transaction

    Flushes all the previously watched keys for a transaction

    Definition Classes
    BaseOpsBaseApi
  154. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  155. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  156. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  157. def watch(key: Any, keys: Any*)(implicit format: Format): Boolean

    Marks the given keys to be watched for conditional execution of a transaction.

    Marks the given keys to be watched for conditional execution of a transaction.

    Definition Classes
    BaseOpsBaseApi
  158. def zadd(key: Any, score: Double, member: Any, scoreVals: (Double, Any)*)(implicit format: Format): Option[Long]

    Add the specified members having the specified score to the sorted set stored at key.

    Add the specified members having the specified score to the sorted set stored at key. (Variadic: >= 2.4)

    Definition Classes
    SortedSetOpsSortedSetApi
  159. def zcard(key: Any)(implicit format: Format): Option[Long]

    Definition Classes
    SortedSetOpsSortedSetApi
  160. def zcount(key: Any, min: Double = Double.NegativeInfinity, max: Double = Double.PositiveInfinity, minInclusive: Boolean = true, maxInclusive: Boolean = true)(implicit format: Format): Option[Long]

    Definition Classes
    SortedSetOpsSortedSetApi
  161. def zincrby(key: Any, incr: Double, member: Any)(implicit format: Format): Option[Double]

    Definition Classes
    SortedSetOpsSortedSetApi
  162. def zinterstore(dstKey: Any, keys: Iterable[Any], aggregate: Aggregate = SUM)(implicit format: Format): Option[Long]

    Definition Classes
    SortedSetOpsSortedSetApi
  163. def zinterstoreWeighted(dstKey: Any, kws: Iterable[Product2[Any, Double]], aggregate: Aggregate = SUM)(implicit format: Format): Option[Long]

    Definition Classes
    SortedSetOpsSortedSetApi
  164. def zrange[A](key: Any, start: Int = 0, end: Int = 1, sortAs: SortOrder)(implicit format: Format, parse: Parse[A]): Option[List[A]]

    Definition Classes
    SortedSetOpsSortedSetApi
  165. def zrangeWithScore[A](key: Any, start: Int = 0, end: Int = 1, sortAs: SortOrder = ASC)(implicit format: Format, parse: Parse[A]): Option[List[(A, Double)]]

    Definition Classes
    SortedSetOpsSortedSetApi
  166. def zrangebylex[A](key: Any, min: String, max: String, limit: Option[(Int, Int)])(implicit format: Format, parse: Parse[A]): Option[List[A]]

    Definition Classes
    SortedSetOpsSortedSetApi
  167. def zrangebyscore[A](key: Any, min: Double = Double.NegativeInfinity, minInclusive: Boolean = true, max: Double = Double.PositiveInfinity, maxInclusive: Boolean = true, limit: Option[(Int, Int)], sortAs: SortOrder = ASC)(implicit format: Format, parse: Parse[A]): Option[List[A]]

    Definition Classes
    SortedSetOpsSortedSetApi
  168. def zrangebyscoreWithScore[A](key: Any, min: Double = Double.NegativeInfinity, minInclusive: Boolean = true, max: Double = Double.PositiveInfinity, maxInclusive: Boolean = true, limit: Option[(Int, Int)], sortAs: SortOrder = ASC)(implicit format: Format, parse: Parse[A]): Option[List[(A, Double)]]

    Definition Classes
    SortedSetOpsSortedSetApi
  169. def zrank(key: Any, member: Any, reverse: Boolean = false)(implicit format: Format): Option[Long]

    Definition Classes
    SortedSetOpsSortedSetApi
  170. def zrem(key: Any, member: Any, members: Any*)(implicit format: Format): Option[Long]

    Remove the specified members from the sorted set value stored at key.

    Remove the specified members from the sorted set value stored at key. (Variadic: >= 2.4)

    Definition Classes
    SortedSetOpsSortedSetApi
  171. def zremrangebyrank(key: Any, start: Int = 0, end: Int = 1)(implicit format: Format): Option[Long]

    Definition Classes
    SortedSetOpsSortedSetApi
  172. def zremrangebyscore(key: Any, start: Double = Double.NegativeInfinity, end: Double = Double.PositiveInfinity)(implicit format: Format): Option[Long]

    Definition Classes
    SortedSetOpsSortedSetApi
  173. def zscan[A](key: Any, cursor: Int, pattern: Any, count: Int)(implicit format: Format, parse: Parse[A]): Option[(Option[Int], Option[List[Option[A]]])]

    Incrementally iterate sorted sets elements and associated scores (since 2.

    Incrementally iterate sorted sets elements and associated scores (since 2.8)

    Definition Classes
    SortedSetOpsSortedSetApi
  174. def zscore(key: Any, element: Any)(implicit format: Format): Option[Double]

    Definition Classes
    SortedSetOpsSortedSetApi
  175. def zunionstore(dstKey: Any, keys: Iterable[Any], aggregate: Aggregate = SUM)(implicit format: Format): Option[Long]

    Definition Classes
    SortedSetOpsSortedSetApi
  176. def zunionstoreWeighted(dstKey: Any, kws: Iterable[Product2[Any, Double]], aggregate: Aggregate = SUM)(implicit format: Format): Option[Long]

    Definition Classes
    SortedSetOpsSortedSetApi

Deprecated Value Members

  1. def hset(key: Any, field: Any, value: Any)(implicit format: Format): Boolean

    Sets field in the hash stored at key to value.

    Sets field in the hash stored at key to value. If key does not exist, a new key holding a hash is created. If field already exists in the hash, it is overwritten.

    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
    HashOpsHashApi
    Deprecated

    return value semantics is inconsistent with com.redis.HashOperations#hsetnx and com.redis.HashOperations#hmset. Use com.redis.HashOperations#hset1 instead

    See also

    HSET documentation

  2. def set(key: Any, value: Any, onlyIfExists: Boolean, time: SecondsOrMillis): Boolean

    Definition Classes
    StringApi
    Annotations
    @deprecated
    Deprecated

    (Since version 3.10) Use implementation with scala.concurrent.duration.Duration and SetBehaviour

Inherited from HashOps

Inherited from HashApi

Inherited from EvalOps

Inherited from EvalApi

Inherited from SortedSetOps

Inherited from SortedSetApi

Inherited from SetOps

Inherited from SetApi

Inherited from ListOps

Inherited from ListApi

Inherited from StringOps

Inherited from StringApi

Inherited from NodeOps

Inherited from NodeApi

Inherited from BaseOps

Inherited from BaseApi

Inherited from RedisClusterOps

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped