Class/Object

com.twitter.finagle.redis

Client

Related Docs: object Client | package redis

Permalink

class Client extends BaseClient with Keys with Strings with Hashes with SortedSets with Lists with Sets with BtreeSortedSetCommands with HyperLogLogs

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Client
  2. HyperLogLogs
  3. BtreeSortedSetCommands
  4. Sets
  5. Lists
  6. SortedSets
  7. Hashes
  8. Strings
  9. Keys
  10. BaseClient
  11. AnyRef
  12. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Client(service: Service[Command, Reply])

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def append(key: ChannelBuffer, value: ChannelBuffer): Future[Long]

    Permalink

    Appends value at the given key.

    Appends value at the given key. If key doesn't exist, behavior is similar to SET command

    returns

    length of string after append operation

    Definition Classes
    Strings
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def auth(password: ChannelBuffer): Future[Unit]

    Permalink

    Authorizes to db

    Authorizes to db

    Definition Classes
    BaseClient
  7. def bAdd(key: ChannelBuffer, field: ChannelBuffer, value: ChannelBuffer): Future[Long]

    Permalink

    Sets field value pair in the given btree sorted set key

    Sets field value pair in the given btree sorted set key

    returns

    1 if field is new, 0 if field was updated

    Definition Classes
    BtreeSortedSetCommands
  8. def bCard(key: ChannelBuffer): Future[Long]

    Permalink

    Returns the btree sorted set cardinality for the given key

    Returns the btree sorted set cardinality for the given key

    returns

    Integer representing cardinality of btree sorted set, or 0 if key does not exist

    Definition Classes
    BtreeSortedSetCommands
  9. def bGet(key: ChannelBuffer, field: ChannelBuffer): Future[Option[ChannelBuffer]]

    Permalink

    Gets the value for the field from the given btree sorted set key

    Gets the value for the field from the given btree sorted set key

    returns

    Value if field exists

    Definition Classes
    BtreeSortedSetCommands
  10. def bRange(key: ChannelBuffer, startField: Option[ChannelBuffer], endField: Option[ChannelBuffer]): Future[Seq[(ChannelBuffer, ChannelBuffer)]]

    Permalink

    Gets all field value pairs for the given btree sorted order key from startField to endField

    Gets all field value pairs for the given btree sorted order key from startField to endField

    returns

    Sequence of field/value pairs

    Definition Classes
    BtreeSortedSetCommands
  11. def bRem(key: ChannelBuffer, fields: Seq[ChannelBuffer]): Future[Long]

    Permalink

    Deletes fields from the given btree sorted set key

    Deletes fields from the given btree sorted set key

    returns

    Number of fields deleted

    Definition Classes
    BtreeSortedSetCommands
  12. def bitCount(key: ChannelBuffer, start: Option[Int] = None, end: Option[Int] = None): Future[Long]

    Permalink

    Count the number of set bits (population counting) in a string.

    Count the number of set bits (population counting) in a string.

    start

    optional index bytes starting from.

    end

    optional index bytes of the end.

    returns

    The number of bits set to 1.

    Definition Classes
    Strings
    See also

    http://redis.io/commands/bitcount

  13. def bitOp(op: ChannelBuffer, dstKey: ChannelBuffer, srcKeys: Seq[ChannelBuffer]): Future[Long]

    Permalink

    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.

    op

    operation type, one of AND/OR/XOR/NOT.

    dstKey

    destination key.

    srcKeys

    source keys perform the operation between.

    returns

    The size of the string stored in the destination key, that is equal to the size of the longest input string.

    Definition Classes
    Strings
    See also

    http://redis.io/commands/bitop

  14. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. def decr(key: ChannelBuffer): Future[Long]

    Permalink

    Decremts number stored at key by 1.

    Decremts number stored at key by 1.

    returns

    value after decrement.

    Definition Classes
    Strings
  16. def decrBy(key: ChannelBuffer, amount: Long): Future[Long]

    Permalink

    Decrements number stored at key by given amount.

    Decrements number stored at key by given amount. If key doesn't exist, value is set to 0 before the operation

    returns

    value after decrement. Error if key contains value of the wrong type

    Definition Classes
    Strings
  17. def del(keys: Seq[ChannelBuffer]): Future[Long]

    Permalink

    Removes keys

    Removes keys

    keys

    list of keys to remove

    returns

    Number of keys removed

    Definition Classes
    Keys
  18. def dump(key: ChannelBuffer): Future[Option[ChannelBuffer]]

    Permalink

    Serialize the value stored at key in a Redis-specific format and returns it to the user

    Serialize the value stored at key in a Redis-specific format and returns it to the user

    returns

    bytes, or none if the key did not exist

    Definition Classes
    Keys
  19. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  21. def exists(key: ChannelBuffer): Future[Boolean]

    Permalink

    Checks if given key exists

    Checks if given key exists

    returns

    true if key exists, false otherwise

    Definition Classes
    Keys
  22. def expire(key: ChannelBuffer, ttl: Long): Future[Boolean]

    Permalink

    Sets how long it will take the key to expire

    Sets how long it will take the key to expire

    returns

    boolean, true if it successfully set the ttl (time to live) on a valid key, false otherwise.

    Definition Classes
    Keys
  23. def expireAt(key: ChannelBuffer, ttl: Long): Future[Boolean]

    Permalink

    Same effect and semantic as "expire", but takes an absolute Unix timestamp

    Same effect and semantic as "expire", but takes an absolute Unix timestamp

    ttl

    time-to-live as unix timestamp

    returns

    boolean, true if it successfully set the ttl (time to live) on a valid key, false otherwise.

    Definition Classes
    Keys
  24. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. def flushAll(): Future[Unit]

    Permalink

    Deletes all keys in all databases

    Deletes all keys in all databases

    Definition Classes
    BaseClient
  26. def flushDB(): Future[Unit]

    Permalink

    Deletes all keys in current DB

    Deletes all keys in current DB

    Definition Classes
    BaseClient
  27. def get(key: ChannelBuffer): Future[Option[ChannelBuffer]]

    Permalink

    Gets the value associated with the given key

    Gets the value associated with the given key

    returns

    value, or none if key doesn't exist

    Definition Classes
    Strings
  28. def getBit(key: ChannelBuffer, offset: Int): Future[Long]

    Permalink

    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.

    returns

    the bit value stored at offset.

    Definition Classes
    Strings
    See also

    http://redis.io/commands/getbit

  29. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  30. def getRange(key: ChannelBuffer, start: Long, end: Long): Future[Option[ChannelBuffer]]

    Permalink

    Gets the substring of the value associated with given key

    Gets the substring of the value associated with given key

    returns

    substring, or none if key doesn't exist

    Definition Classes
    Strings
  31. def getSet(key: ChannelBuffer, value: ChannelBuffer): Future[Option[ChannelBuffer]]

    Permalink

    Atomically sets key to value and returns the old value stored at key.

    Atomically sets key to value and returns the old value stored at key. Returns an error when key exists but does not hold a string value.

    returns

    the old value stored at key wrapped in Some, or None when key did not exist.

    Definition Classes
    Strings
    See also

    http://redis.io/commands/getset

  32. def hDel(key: ChannelBuffer, fields: Seq[ChannelBuffer]): Future[Long]

    Permalink

    Deletes fields from given hash

    Deletes fields from given hash

    returns

    Number of fields deleted

    Definition Classes
    Hashes
  33. def hExists(key: ChannelBuffer, field: ChannelBuffer): Future[Boolean]

    Permalink

    Determine if a hash field exists

    Determine if a hash field exists

    returns

    true if key field exists, false otherwise

    Definition Classes
    Hashes
  34. def hGet(key: ChannelBuffer, field: ChannelBuffer): Future[Option[ChannelBuffer]]

    Permalink

    Gets field from hash

    Gets field from hash

    returns

    Value if field exists

    Definition Classes
    Hashes
  35. def hGetAll(key: ChannelBuffer): Future[Seq[(ChannelBuffer, ChannelBuffer)]]

    Permalink

    Gets all field value pairs for given hash

    Gets all field value pairs for given hash

    returns

    Sequence of field/value pairs

    Definition Classes
    Hashes
  36. def hIncrBy(key: ChannelBuffer, field: ChannelBuffer, amount: Long): Future[Long]

    Permalink

    Increment a field by a value

    Increment a field by a value

    returns

    new value of field

    Definition Classes
    Hashes
  37. def hKeys(key: ChannelBuffer): Future[Seq[ChannelBuffer]]

    Permalink

    Return all field names stored at key

    Return all field names stored at key

    returns

    List of fields in hash

    Definition Classes
    Hashes
  38. def hMGet(key: ChannelBuffer, fields: Seq[ChannelBuffer]): Future[Seq[ChannelBuffer]]

    Permalink

    Gets values for given fields in hash

    Gets values for given fields in hash

    returns

    List of values

    Definition Classes
    Hashes
  39. def hMSet(key: ChannelBuffer, fv: Map[ChannelBuffer, ChannelBuffer]): Future[Unit]

    Permalink

    Sets values for given fields in hash

    Sets values for given fields in hash

    key

    hash key

    fv

    map of field to value

    Definition Classes
    Hashes
    See also

    http://redis.io/commands/hmset

  40. def hScan(key: ChannelBuffer, cursor: Long, count: Option[Long], pattern: Option[ChannelBuffer]): Future[Seq[ChannelBuffer]]

    Permalink

    Returns keys in given hash, starting at cursor

    Returns keys in given hash, starting at cursor

    returns

    cursor followed by matching keys

    Definition Classes
    Hashes
  41. def hSet(key: ChannelBuffer, field: ChannelBuffer, value: ChannelBuffer): Future[Long]

    Permalink

    Sets field value pair in given hash

    Sets field value pair in given hash

    returns

    1 if field is new, 0 if field was updated

    Definition Classes
    Hashes
  42. def hSetNx(key: ChannelBuffer, field: ChannelBuffer, value: ChannelBuffer): Future[Long]

    Permalink

    Sets field value pair in given hash only if the field does not yet exist

    Sets field value pair in given hash only if the field does not yet exist

    returns

    1 if field is new, 0 if no operation was performed

    Definition Classes
    Hashes
  43. def hVals(key: ChannelBuffer): Future[Seq[ChannelBuffer]]

    Permalink

    Gets the values of all fields in given hash

    Gets the values of all fields in given hash

    returns

    list of values, or empty list when key does not exist

    Definition Classes
    Hashes
  44. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  45. def incr(key: ChannelBuffer): Future[Long]

    Permalink

    Increments the number stored at key by one.

    Increments the number stored at key by one.

    returns

    the value of key after the increment.

    Definition Classes
    Strings
    See also

    http://redis.io/commands/incr

  46. def incrBy(key: ChannelBuffer, increment: Long): Future[Long]

    Permalink

    Increments the number stored at key by increment.

    Increments the number stored at key by increment.

    returns

    the value of key after the increment.

    Definition Classes
    Strings
    See also

    http://redis.io/commands/incrby

  47. def info(section: ChannelBuffer = ChannelBuffers.EMPTY_BUFFER): Future[Option[ChannelBuffer]]

    Permalink

    Returns information and statistics about the server

    Returns information and statistics about the server

    section

    Optional parameter can be used to select a specific section of information

    returns

    ChannelBuffer with collection of \r\n terminated lines if server has info on section

    Definition Classes
    BaseClient
  48. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  49. def keys(pattern: ChannelBuffer): Future[Seq[ChannelBuffer]]

    Permalink

    Returns all keys matching pattern

    Returns all keys matching pattern

    returns

    list of keys matching pattern

    Definition Classes
    Keys
  50. def lIndex(key: ChannelBuffer, index: Long): Future[Option[ChannelBuffer]]

    Permalink

    Gets the value of the element at the indexth position in the list.

    Gets the value of the element at the indexth position in the list. If the key is a non-list element, an exception will be thrown.

    returns

    an option of the value of the element at the indexth position in the list. Nothing if the index is out of range.

    Definition Classes
    Lists
  51. def lInsertAfter(key: ChannelBuffer, pivot: ChannelBuffer, value: ChannelBuffer): Future[Option[Long]]

    Permalink

    Inserts a value after another pivot value in the list.

    Inserts a value after another pivot value in the list. If the key is a non-list element, an exception will be thrown.

    returns

    an option of the new length of the list, or nothing if the pivot is not found, or the list is empty.

    Definition Classes
    Lists
  52. def lInsertBefore(key: ChannelBuffer, pivot: ChannelBuffer, value: ChannelBuffer): Future[Option[Long]]

    Permalink

    Inserts a value before another pivot value in the list.

    Inserts a value before another pivot value in the list. If the key is a non-list element, an exception will be thrown.

    returns

    an option of the new length of the list, or nothing if the pivot is not found, or the list is empty.

    Definition Classes
    Lists
  53. def lLen(key: ChannelBuffer): Future[Long]

    Permalink

    Gets the length of the list.

    Gets the length of the list. If the key is a non-list element, an exception will be thrown.

    returns

    the length of the list. Unassigned keys are considered empty lists, and return 0.

    Definition Classes
    Lists
  54. def lPop(key: ChannelBuffer): Future[Option[ChannelBuffer]]

    Permalink

    Pops a value off the front of the list.

    Pops a value off the front of the list. If the key is a non-list element, an exception will be thrown.

    returns

    an option of the value of the popped element, or nothing if the list is empty.

    Definition Classes
    Lists
  55. def lPush(key: ChannelBuffer, value: List[ChannelBuffer]): Future[Long]

    Permalink

    Pushes a value onto the front of the list.

    Pushes a value onto the front of the list. If the key is a non-list element, an exception will be thrown.

    returns

    the length of the list

    Definition Classes
    Lists
  56. def lRange(key: ChannelBuffer, start: Long, end: Long): Future[List[ChannelBuffer]]

    Permalink

    Gets the values in the range supplied.

    Gets the values in the range supplied. If the key is a non-list element, an exception will be thrown.

    start

    (inclusive)

    end

    (inclusive)

    returns

    a list of the value

    Definition Classes
    Lists
  57. def lRem(key: ChannelBuffer, count: Long, value: ChannelBuffer): Future[Long]

    Permalink

    Removes count elements matching value from the list.

    Removes count elements matching value from the list. If the key is a non-list element, an exception will be thrown.

    returns

    the number of removed elements.

    Definition Classes
    Lists
    Note

    The sign of count describes whether it will remove them from the back or the front of the list. If count is 0, it will remove all instances, value

  58. def lSet(key: ChannelBuffer, index: Long, value: ChannelBuffer): Future[Unit]

    Permalink

    Sets the indexth element to be value.

    Sets the indexth element to be value. If the key is a non-list element, an exception will be thrown.

    Definition Classes
    Lists
  59. def lTrim(key: ChannelBuffer, start: Long, end: Long): Future[Unit]

    Permalink

    Removes all of the elements from the list except for those in the range.

    Removes all of the elements from the list except for those in the range.

    start

    (inclusive)

    end

    (exclusive)

    Definition Classes
    Lists
  60. def mGet(keys: Seq[ChannelBuffer]): Future[Seq[Option[ChannelBuffer]]]

    Permalink

    Returns the values of all specified keys.

    Returns the values of all specified keys.

    returns

    list of values at the specified keys.

    Definition Classes
    Strings
    See also

    http://redis.io/commands/mget

  61. def mSet(kv: Map[ChannelBuffer, ChannelBuffer]): Future[Unit]

    Permalink

    Sets the given keys to their respective values.

    Sets the given keys to their respective values. MSET replaces existing values with new values, just as regular SET.

    Definition Classes
    Strings
    See also

    http://redis.io/commands/mset

  62. def mSetNx(kv: Map[ChannelBuffer, ChannelBuffer]): Future[Boolean]

    Permalink

    Sets the given keys to their respective values.

    Sets the given keys to their respective values. MSETNX will not perform any operation at all even if just a single key already exists.

    returns

    1 if all keys were set, 0 if no keys were set.

    Definition Classes
    Strings
    See also

    http://redis.io/commands/msetnx

  63. def move(key: ChannelBuffer, db: ChannelBuffer): Future[Boolean]

    Permalink

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

    Move key from the currently selected database to the specified destination database. When key already exists in the destination database, or it does not exist in the source database, it does nothing.

    returns

    true if key was moved. false if key was not moved for any reason.

    Definition Classes
    Keys
  64. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  65. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  66. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  67. def pExpire(key: ChannelBuffer, milliseconds: Long): Future[Boolean]

    Permalink

    Set a key's time to live in milliseconds.

    Set a key's time to live in milliseconds.

    returns

    true if the timeout was set. false if key does not exist or the timeout could not be set.

    Definition Classes
    Keys
    See also

    http://redis.io/commands/pexpire

  68. def pExpireAt(key: ChannelBuffer, timestamp: Long): Future[Boolean]

    Permalink

    Set the expiration for a key as a UNIX timestamp specified in milliseconds.

    Set the expiration for a key as a UNIX timestamp specified in milliseconds.

    returns

    true if the timeout was set. false if key does not exist or the timeout could not be set (see: EXPIRE).

    Definition Classes
    Keys
    See also

    http://redis.io/commands/pexpireat

  69. def pSetEx(key: ChannelBuffer, millis: Long, value: ChannelBuffer): Future[Unit]

    Permalink

    Works exactly like SETEX with the sole difference that the expire time is specified in milliseconds instead of seconds.

    Works exactly like SETEX with the sole difference that the expire time is specified in milliseconds instead of seconds.

    Definition Classes
    Strings
    See also

    http://redis.io/commands/psetex

  70. def pTtl(key: ChannelBuffer): Future[Option[Long]]

    Permalink

    Get the time to live for a key in milliseconds.

    Get the time to live for a key in milliseconds.

    returns

    Time to live in milliseconds or None when key does not exist or does not have a timeout.

    Definition Classes
    Keys
  71. def pfAdd(key: ChannelBuffer, elements: List[ChannelBuffer]): Future[Boolean]

    Permalink

    Adds elements to a HyperLogLog data structure.

    Adds elements to a HyperLogLog data structure.

    returns

    True if a bit was set in the HyperLogLog data structure

    Definition Classes
    HyperLogLogs
    See also

    http://redis.io/commands/pfadd

  72. def pfCount(keys: Seq[ChannelBuffer]): Future[Long]

    Permalink

    Get the approximated cardinality of sets observed by the HyperLogLog at key(s)

    Get the approximated cardinality of sets observed by the HyperLogLog at key(s)

    returns

    Approximated number of unique elements

    Definition Classes
    HyperLogLogs
    See also

    http://redis.io/commands/pfcount

  73. def pfMerge(destKey: ChannelBuffer, srcKeys: Seq[ChannelBuffer]): Future[Unit]

    Permalink

    Merge HyperLogLogs at srcKeys to create a new HyperLogLog at destKey

    Merge HyperLogLogs at srcKeys to create a new HyperLogLog at destKey

    Definition Classes
    HyperLogLogs
    See also

    http://redis.io/commands/pfmerge

  74. def quit(): Future[Unit]

    Permalink

    Closes connection to Redis instance

    Closes connection to Redis instance

    Definition Classes
    BaseClient
  75. def rPop(key: ChannelBuffer): Future[Option[ChannelBuffer]]

    Permalink

    Pops a value off the end of the list.

    Pops a value off the end of the list. If the key is a non-list element, an exception will be thrown.

    returns

    an option of the value of the popped element, or nothing if the list is empty.

    Definition Classes
    Lists
  76. def rPush(key: ChannelBuffer, value: List[ChannelBuffer]): Future[Long]

    Permalink

    Pushes a value onto the end of the list.

    Pushes a value onto the end of the list. If the key is a non-list element, an exception will be thrown.

    returns

    the length of the list

    Definition Classes
    Lists
  77. def release(): Future[Unit]

    Permalink

    Releases underlying service object

    Releases underlying service object

    Definition Classes
    BaseClient
  78. def sAdd(key: ChannelBuffer, members: List[ChannelBuffer]): Future[Long]

    Permalink

    Adds elements to the set, according to the set property.

    Adds elements to the set, according to the set property. Throws an exception if the key does not refer to a set.

    returns

    the number of new members added to the set.

    Definition Classes
    Sets
  79. def sCard(key: ChannelBuffer): Future[Long]

    Permalink

    How many elements are in the set? Throws an exception if the key does not refer to a set.

    How many elements are in the set? Throws an exception if the key does not refer to a set.

    returns

    the number of elements in the set. Unassigned keys are considered empty sets.

    Definition Classes
    Sets
  80. def sInter(keys: Seq[ChannelBuffer]): Future[Set[ChannelBuffer]]

    Permalink

    Returns the members of the set resulting from the intersection of all the given sets.

    Returns the members of the set resulting from the intersection of all the given sets.

    Keys that do not exist are considered to be empty sets. With one of the keys being an empty set, the resulting set is also empty (since set intersection with an empty set always results in an empty set).

    Throws an exception if the keys Seq is empty or if any of the keys passed as params are empty.

    keys

    list of keys to intersect

    returns

    set of members from the resulting intersection

    Definition Classes
    Sets
  81. def sIsMember(key: ChannelBuffer, member: ChannelBuffer): Future[Boolean]

    Permalink

    Is the member in the set? Throws an exception if the key does not refer to a set.

    Is the member in the set? Throws an exception if the key does not refer to a set.

    returns

    a boolean, true if it is in the set, false otherwise. Unassigned keys are considered empty sets.

    Definition Classes
    Sets
  82. def sMembers(key: ChannelBuffer): Future[Set[ChannelBuffer]]

    Permalink

    Gets the members of the set.

    Gets the members of the set. Throws an exception if the key does not refer to a set.

    returns

    a list of the members

    Definition Classes
    Sets
  83. def sPop(key: ChannelBuffer): Future[Option[ChannelBuffer]]

    Permalink

    Removes an element randomly from the set, and returns it.

    Removes an element randomly from the set, and returns it. Throws an exception if the key does not refer to a set.

    returns

    the member, or nothing if the set is empty.

    Definition Classes
    Sets
  84. def sRandMember(key: ChannelBuffer, count: Option[Int] = None): Future[Seq[ChannelBuffer]]

    Permalink

    Returns a list of random entries from the set.

    Returns a list of random entries from the set. If the count is positive, a set is returned, otherwise a list that may contain duplicates is returned.

    returns

    a sequence with count random entries from the set

    Definition Classes
    Sets
  85. def sRem(key: ChannelBuffer, members: List[ChannelBuffer]): Future[Long]

    Permalink

    Removes the element from the set if it is in the set.

    Removes the element from the set if it is in the set. Throws an exception if the key does not refer to a set.

    returns

    an integer, the number of elements removed from the set, can be 0 if the key is unassigned.

    Definition Classes
    Sets
  86. def scan(cursor: Long, count: Option[Long], pattern: Option[ChannelBuffer]): Future[Seq[ChannelBuffer]]

    Permalink

    Returns keys starting at cursor

    Returns keys starting at cursor

    returns

    cursor followed by matching keys

    Definition Classes
    Keys
  87. def select(index: Int): Future[Unit]

    Permalink

    Select DB with specified zero-based index

    Select DB with specified zero-based index

    Definition Classes
    BaseClient
  88. def set(key: ChannelBuffer, value: ChannelBuffer): Future[Unit]

    Permalink

    Sets the given value to key.

    Sets the given value to key. If a value already exists for the key, the value is overwritten with the new value

    Definition Classes
    Strings
  89. def setBit(key: ChannelBuffer, offset: Int, value: Int): Future[Long]

    Permalink

    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.

    returns

    the original bit value stored at offset.

    Definition Classes
    Strings
    See also

    http://redis.io/commands/setbit

  90. def setEx(key: ChannelBuffer, seconds: Long, value: ChannelBuffer): Future[Unit]

    Permalink

    Set key to hold the string value and set key to timeout after a given number of seconds.

    Set key to hold the string value and set key to timeout after a given number of seconds.

    Definition Classes
    Strings
    See also

    http://redis.io/commands/setex

  91. def setExNx(key: ChannelBuffer, seconds: Long, value: ChannelBuffer): Future[Boolean]

    Permalink

    Set key to hold the string value with the specified expire time in seconds only if the key does not already exist.

    Set key to hold the string value with the specified expire time in seconds only if the key does not already exist.

    returns

    true if the key was set, false if condition was not met.

    Definition Classes
    Strings
    See also

    http://redis.io.commands/set

  92. def setExXx(key: ChannelBuffer, seconds: Long, value: ChannelBuffer): Future[Boolean]

    Permalink

    Set key to hold the string value with the specified expire time in seconds only if the key already exist.

    Set key to hold the string value with the specified expire time in seconds only if the key already exist.

    returns

    true if the key was set, false if condition was not met.

    Definition Classes
    Strings
    See also

    http://redis.io.commands/set

  93. def setNx(key: ChannelBuffer, value: ChannelBuffer): Future[Boolean]

    Permalink

    Set key to hold string value if key does not exist.

    Set key to hold string value if key does not exist. In that case, it is equal to SET. When key already holds a value, no operation is performed.

    returns

    1 if the key was set, 0 if the key was not set.

    Definition Classes
    Strings
    See also

    http://redis.io/commands/setnx

  94. def setPx(key: ChannelBuffer, millis: Long, value: ChannelBuffer): Future[Unit]

    Permalink

    Set key to hold the string value with the specified expire time in milliseconds.

    Set key to hold the string value with the specified expire time in milliseconds.

    Definition Classes
    Strings
    See also

    http://redis.io.commands/set

  95. def setPxNx(key: ChannelBuffer, millis: Long, value: ChannelBuffer): Future[Boolean]

    Permalink

    Set key to hold the string value with the specified expire time in milliseconds only if the key does not already exist.

    Set key to hold the string value with the specified expire time in milliseconds only if the key does not already exist.

    returns

    true if the key was set, false if condition was not met.

    Definition Classes
    Strings
    See also

    http://redis.io.commands/set

  96. def setPxXx(key: ChannelBuffer, millis: Long, value: ChannelBuffer): Future[Boolean]

    Permalink

    Set key to hold the string value with the specified expire time in milliseconds only if the key already exist.

    Set key to hold the string value with the specified expire time in milliseconds only if the key already exist.

    returns

    true if the key was set, false if condition was not met.

    Definition Classes
    Strings
    See also

    http://redis.io.commands/set

  97. def setRange(key: ChannelBuffer, offset: Int, value: ChannelBuffer): Future[Long]

    Permalink

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

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

    returns

    the length of the string after it was modified.

    Definition Classes
    Strings
    See also

    http://redis.io/commands/setrange

  98. def setXx(key: ChannelBuffer, value: ChannelBuffer): Future[Boolean]

    Permalink

    Set key to hold the string value only if the key already exist.

    Set key to hold the string value only if the key already exist.

    returns

    true if the key was set, false if condition was not met.

    Definition Classes
    Strings
    See also

    http://redis.io.commands/set

  99. def strlen(key: ChannelBuffer): Future[Long]

    Permalink

    returns the length of the string value stored at key.

    returns the length of the string value stored at key.

    returns

    the length of the string at key, or 0 when key does not exist.

    Definition Classes
    Strings
    See also

    http://redis.io/commands/strlen

  100. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  101. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  102. def ttl(key: ChannelBuffer): Future[Option[Long]]

    Permalink

    Gets the ttl of the given key.

    Gets the ttl of the given key.

    returns

    Option containing either the ttl in seconds if the key exists and has a timeout, or else nothing.

    Definition Classes
    Keys
  103. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  106. def zAdd(key: ChannelBuffer, score: Double, member: ChannelBuffer): Future[Long]

    Permalink

    Add a member with score to a sorted set

    Add a member with score to a sorted set

    returns

    Number of elements added to sorted set

    Definition Classes
    SortedSets
  107. def zAddMulti(key: ChannelBuffer, members: Seq[(Double, ChannelBuffer)]): Future[Long]

    Permalink

    Adds member, score pairs to sorted set

    Adds member, score pairs to sorted set

    members

    sequence of (score, member) tuples

    returns

    Number of elements added to sorted set

    Definition Classes
    SortedSets
    Note

    Adding multiple elements only works with redis 2.4 or later.

  108. def zCard(key: ChannelBuffer): Future[Long]

    Permalink

    Returns sorted set cardinality of the sorted set at key

    Returns sorted set cardinality of the sorted set at key

    returns

    Integer representing cardinality of sorted set, or 0 if key does not exist

    Definition Classes
    SortedSets
  109. def zCount(key: ChannelBuffer, min: ZInterval, max: ZInterval): Future[Long]

    Permalink

    Gets number of elements in sorted set with score between min and max

    Gets number of elements in sorted set with score between min and max

    returns

    Number of elements between min and max in sorted set

    Definition Classes
    SortedSets
  110. def zIncrBy(key: ChannelBuffer, amount: Double, member: ChannelBuffer): Future[Option[Double]]

    Permalink

    Increment the member in sorted set key by amount.

    Increment the member in sorted set key by amount. Returns an option, None if the member is not found, or the set is empty, or the new value. Throws an exception if the key refers to a structure that is not a sorted set.

    returns

    the new value of the incremented member

    Definition Classes
    SortedSets
  111. def zRange(key: ChannelBuffer, start: Long, stop: Long, withScores: Boolean): Future[Either[ZRangeResults, Seq[ChannelBuffer]]]

    Permalink

    Returns specified range of elements in sorted set at key.

    Returns specified range of elements in sorted set at key. Elements are ordered from lowest to highest score.

    returns

    ZRangeResults object containing item/score pairs

    Definition Classes
    SortedSets
  112. def zRangeByScore(key: ChannelBuffer, min: ZInterval, max: ZInterval, withScores: Boolean, limit: Option[Limit]): Future[Either[ZRangeResults, Seq[ChannelBuffer]]]

    Permalink

    Gets member, score pairs from sorted set between min and max Results are limited by offset and count

    Gets member, score pairs from sorted set between min and max Results are limited by offset and count

    returns

    ZRangeResults object containing item/score pairs

    Definition Classes
    SortedSets
  113. def zRank(key: ChannelBuffer, member: ChannelBuffer): Future[Option[Long]]

    Permalink

    Gets the rank of the member in the sorted set, or None if it doesn't exist, from low to high.

    Gets the rank of the member in the sorted set, or None if it doesn't exist, from low to high.

    returns

    the rank of the member

    Definition Classes
    SortedSets
  114. def zRem(key: ChannelBuffer, members: Seq[ChannelBuffer]): Future[Long]

    Permalink

    Removes specified member(s) from sorted set at key

    Removes specified member(s) from sorted set at key

    returns

    Number of members removed from sorted set

    Definition Classes
    SortedSets
  115. def zRemRangeByRank(key: ChannelBuffer, start: Long, stop: Long): Future[Long]

    Permalink

    Removes members from sorted set by sort order, from start to stop, inclusive.

    Removes members from sorted set by sort order, from start to stop, inclusive.

    returns

    Number of members removed from sorted set.

    Definition Classes
    SortedSets
  116. def zRemRangeByScore(key: ChannelBuffer, min: ZInterval, max: ZInterval): Future[Long]

    Permalink

    Removes members from sorted set by score, from min to max, inclusive.

    Removes members from sorted set by score, from min to max, inclusive.

    returns

    Number of members removed from sorted set.

    Definition Classes
    SortedSets
  117. def zRevRange(key: ChannelBuffer, start: Long, stop: Long, withScores: Boolean): Future[Either[ZRangeResults, Seq[ChannelBuffer]]]

    Permalink

    Returns specified range of elements in sorted set at key Elements are ordered from highest to lowest score

    Returns specified range of elements in sorted set at key Elements are ordered from highest to lowest score

    returns

    List of elements in specified range

    Definition Classes
    SortedSets
  118. def zRevRangeByScore(key: ChannelBuffer, max: ZInterval, min: ZInterval, withScores: Boolean, limit: Option[Limit]): Future[Either[ZRangeResults, Seq[ChannelBuffer]]]

    Permalink

    Returns elements in sorted set at key with a score between max and min Elements are ordered from highest to lowest score Results are limited by offset and count

    Returns elements in sorted set at key with a score between max and min Elements are ordered from highest to lowest score Results are limited by offset and count

    returns

    ZRangeResults object containing item/score pairs

    Definition Classes
    SortedSets
  119. def zRevRank(key: ChannelBuffer, member: ChannelBuffer): Future[Option[Long]]

    Permalink

    Gets the rank of member in the sorted set, or None if it doesn't exist, from high to low.

    Gets the rank of member in the sorted set, or None if it doesn't exist, from high to low.

    returns

    the rank of the member

    Definition Classes
    SortedSets
  120. def zScore(key: ChannelBuffer, member: ChannelBuffer): Future[Option[Double]]

    Permalink

    Gets score of member in sorted set

    Gets score of member in sorted set

    returns

    Score of member

    Definition Classes
    SortedSets

Inherited from HyperLogLogs

Inherited from BtreeSortedSetCommands

Inherited from Sets

Inherited from Lists

Inherited from SortedSets

Inherited from Hashes

Inherited from Strings

Inherited from Keys

Inherited from BaseClient

Inherited from AnyRef

Inherited from Any

Ungrouped