com.twitter.finagle.redis

Strings

trait Strings extends AnyRef

Self Type
Strings with BaseClient
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Strings
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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. def append(key: ChannelBuffer, value: ChannelBuffer): Future[Long]

    Appends value at the given key.

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

    key
    value
    returns

    length of string after append operation

  7. final def asInstanceOf[T0]: T0

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

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

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

    key
    start

    optional index bytes starting from.

    end

    optional index bytes of the end.

    returns

    The number of bits set to 1.

    See also

    http://redis.io/commands/bitcount

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

    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.

    See also

    http://redis.io/commands/bitop

  10. def clone(): AnyRef

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

    Decremts number stored at key by 1.

    Decremts number stored at key by 1.

    key
    returns

    value after decrement.

  12. def decrBy(key: ChannelBuffer, amount: Long): Future[Long]

    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

    key
    amount
    returns

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

  13. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def get(key: ChannelBuffer): Future[Option[ChannelBuffer]]

    Gets the value associated with the given key

    Gets the value associated with the given key

    key
    returns

    value, or none if key doesn't exist

  17. def getBit(key: ChannelBuffer, offset: Int): Future[Long]

    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.

    See also

    http://redis.io/commands/getbit

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

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

    Gets the substring of the value associated with given key

    Gets the substring of the value associated with given key

    key
    start
    end
    returns

    substring, or none if key doesn't exist

  20. def getSet(key: ChannelBuffer, value: ChannelBuffer): Future[Option[ChannelBuffer]]

    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.

    See also

    http://redis.io/commands/getset

  21. def hashCode(): Int

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

    Increments the number stored at key by one.

    Increments the number stored at key by one.

    key
    returns

    the value of key after the increment.

    See also

    http://redis.io/commands/incr

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

    Increments the number stored at key by increment.

    Increments the number stored at key by increment.

    returns

    the value of key after the increment.

    See also

    http://redis.io/commands/incrby

  24. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  25. def mGet(keys: Seq[ChannelBuffer]): Future[Seq[Option[ChannelBuffer]]]

    Returns the values of all specified keys.

    Returns the values of all specified keys.

    keys
    returns

    list of values at the specified keys.

    See also

    http://redis.io/commands/mget

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

    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.

    kv
    See also

    http://redis.io/commands/mset

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

    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.

    kv
    returns

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

    See also

    http://redis.io/commands/msetnx

  28. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  29. final def notify(): Unit

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

    Definition Classes
    AnyRef
  31. def pSetEx(key: ChannelBuffer, millis: Long, value: ChannelBuffer): Future[Unit]

    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.

    See also

    http://redis.io/commands/psetex

  32. def set(key: ChannelBuffer, value: ChannelBuffer): Future[Unit]

    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

    key
    value

  33. def setBit(key: ChannelBuffer, offset: Int, value: Int): Future[Long]

    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.

    See also

    http://redis.io/commands/setbit

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

    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.

    See also

    http://redis.io/commands/setex

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

    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.

    See also

    http://redis.io.commands/set

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

    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.

    See also

    http://redis.io.commands/set

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

    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.

    See also

    http://redis.io/commands/setnx

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

    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.

    See also

    http://redis.io.commands/set

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

    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.

    See also

    http://redis.io.commands/set

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

    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.

    See also

    http://redis.io.commands/set

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

    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.

    See also

    http://redis.io/commands/setrange

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

    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.

    See also

    http://redis.io.commands/set

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

    returns the length of the string value stored at key.

    returns the length of the string value stored at key.

    key
    returns

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

    See also

    http://redis.io/commands/strlen

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

    Definition Classes
    AnyRef
  45. def toString(): String

    Definition Classes
    AnyRef → Any
  46. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped