Trait

com.twitter.finagle.redis

Strings

Related Doc: package redis

Permalink

trait Strings extends AnyRef

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

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

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. 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.

    See also

    http://redis.io/commands/bitcount

  7. 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.

    See also

    http://redis.io/commands/bitop

  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. 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.

  10. 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

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. 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

  15. 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.

    See also

    http://redis.io/commands/getbit

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. 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

  18. 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.

    See also

    http://redis.io/commands/getset

  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  20. 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.

    See also

    http://redis.io/commands/incr

  21. 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.

    See also

    http://redis.io/commands/incrby

  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. 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.

    See also

    http://redis.io/commands/mget

  24. 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.

    See also

    http://redis.io/commands/mset

  25. 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.

    See also

    http://redis.io/commands/msetnx

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

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

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

    Permalink
    Definition Classes
    AnyRef
  29. 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.

    See also

    http://redis.io/commands/psetex

  30. 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

  31. 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.

    See also

    http://redis.io/commands/setbit

  32. 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.

    See also

    http://redis.io/commands/setex

  33. 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.

    See also

    http://redis.io.commands/set

  34. 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.

    See also

    http://redis.io.commands/set

  35. 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.

    See also

    http://redis.io/commands/setnx

  36. 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.

    See also

    http://redis.io.commands/set

  37. 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.

    See also

    http://redis.io.commands/set

  38. 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.

    See also

    http://redis.io.commands/set

  39. 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.

    See also

    http://redis.io/commands/setrange

  40. 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.

    See also

    http://redis.io.commands/set

  41. 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.

    See also

    http://redis.io/commands/strlen

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped