com.twitter.storehaus.redis

RedisLongStore

class RedisLongStore extends ConvertedStore[ChannelBuffer, ChannelBuffer, ChannelBuffer, Long] with MergeableStore[ChannelBuffer, Long]

A MergableStore backed by redis which stores Long values. Values are merged with an incrBy operation.

Source
RedisLongStore.scala
Linear Supertypes
MergeableStore[ChannelBuffer, Long], ConvertedStore[ChannelBuffer, ChannelBuffer, ChannelBuffer, Long], Store[ChannelBuffer, Long], ConvertedReadableStore[ChannelBuffer, ChannelBuffer, ChannelBuffer, Long], AbstractReadableStore[ChannelBuffer, Long], ReadableStore[ChannelBuffer, Long], Closeable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. RedisLongStore
  2. MergeableStore
  3. ConvertedStore
  4. Store
  5. ConvertedReadableStore
  6. AbstractReadableStore
  7. ReadableStore
  8. Closeable
  9. AnyRef
  10. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RedisLongStore(underlying: RedisStore)

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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

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

    Close this store and release any resources.

    Close this store and release any resources. It is undefined what happens on get/multiGet after close

    Definition Classes
    ConvertedStoreConvertedReadableStoreReadableStore → Closeable
  9. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. def get(k2: ChannelBuffer): Future[Option[Long]]

    get a single key from the store.

    get a single key from the store. Prefer multiGet if you are getting more than one key at a time

    Definition Classes
    ConvertedReadableStoreReadableStore
  13. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. def merge(kv: (ChannelBuffer, Long)): Future[Unit]

    the key should hold: Monoid.

    the key should hold: Monoid.plus(get(kv._1).get, Some(kv._2)) after this.

    Definition Classes
    RedisLongStoreMergeableStore
  17. val monoid: Monoid[Long]

    The monoid equivalent to the merge operation of this store

    The monoid equivalent to the merge operation of this store

    Definition Classes
    RedisLongStoreMergeableStore
  18. def multiGet[K3 <: ChannelBuffer](s: Set[K3]): Map[K3, Future[Option[Long]]]

    Get a set of keys from the store.

    Get a set of keys from the store. Important: all keys in the input set are in the resulting map. If the store fails to return a value for a given key, that should be represented by a Future.exception.

    Definition Classes
    ConvertedReadableStoreReadableStore
  19. def multiMerge[K1 <: ChannelBuffer](kvs: Map[K1, Long]): Map[K1, Future[Unit]]

    merge a set of keys.

    merge a set of keys.

    Definition Classes
    MergeableStore
  20. def multiPut[K3 <: ChannelBuffer](kvs: Map[K3, Option[Long]]): Map[K3, Future[Unit]]

    Replace a set of keys at one time

    Replace a set of keys at one time

    Definition Classes
    ConvertedStoreStore
  21. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  24. def put(kv: (ChannelBuffer, Option[Long])): Future[Unit]

    replace a value Delete is the same as put((k,None))

    replace a value Delete is the same as put((k,None))

    Definition Classes
    ConvertedStoreStore
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  26. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from MergeableStore[ChannelBuffer, Long]

Inherited from ConvertedStore[ChannelBuffer, ChannelBuffer, ChannelBuffer, Long]

Inherited from Store[ChannelBuffer, Long]

Inherited from ConvertedReadableStore[ChannelBuffer, ChannelBuffer, ChannelBuffer, Long]

Inherited from AbstractReadableStore[ChannelBuffer, Long]

Inherited from ReadableStore[ChannelBuffer, Long]

Inherited from Closeable

Inherited from AnyRef

Inherited from Any