com.twitter.storehaus.memcache

MergeableMemcacheStore

class MergeableMemcacheStore[K, V] extends ConvertedStore[String, K, ChannelBuffer, V] with MergeableStore[K, V]

Mergeable MemcacheStore that uses CAS.

The store supports multiple concurrent writes to the same key, but you might see a performance hit if there are too many concurrent writes to a hot key. The solution is to group by a hot key, and use only a single (or few) writers to that key.

Linear Supertypes
MergeableStore[K, V], Mergeable[K, V], ConvertedStore[String, K, ChannelBuffer, V], Store[K, V], WritableStore[K, Option[V]], ConvertedReadableStore[String, K, ChannelBuffer, V], AbstractReadableStore[K, V], ReadableStore[K, V], Closable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MergeableMemcacheStore
  2. MergeableStore
  3. Mergeable
  4. ConvertedStore
  5. Store
  6. WritableStore
  7. ConvertedReadableStore
  8. AbstractReadableStore
  9. ReadableStore
  10. Closable
  11. AnyRef
  12. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MergeableMemcacheStore(underlying: MemcacheStore, maxRetries: Int)(kfn: (K) ⇒ String)(implicit inj: Injection[V, ChannelBuffer], semigroup: Semigroup[V])

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[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def close(time: Time): Future[Unit]

    Definition Classes
    Mergeable → Closable
  9. def close(after: Duration): Future[Unit]

    Definition Classes
    Closable
  10. final def close(): Future[Unit]

    Definition Classes
    Closable
  11. def doMerge(kv: (K, V), currentRetry: Int): Future[Option[V]]

    Attributes
    protected
  12. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def get(k2: K): Future[Option[V]]

    Definition Classes
    ConvertedReadableStore → ReadableStore
  16. final def getClass(): Class[_]

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

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

    Definition Classes
    Any
  19. def merge(kv: (K, V)): Future[Option[V]]

    Definition Classes
    MergeableMemcacheStore → Mergeable
  20. def multiGet[K3 <: K](s: Set[K3]): Map[K3, Future[Option[V]]]

    Definition Classes
    ConvertedReadableStore → ReadableStore
  21. def multiMerge[K1 <: K](kvs: Map[K1, V]): Map[K1, Future[Option[V]]]

    Definition Classes
    Mergeable
  22. def multiPut[K3 <: K](kvs: Map[K3, Option[V]]): Map[K3, Future[Unit]]

    Definition Classes
    ConvertedStore → WritableStore
  23. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  26. def put(kv: (K, Option[V])): Future[Unit]

    Definition Classes
    ConvertedStore → WritableStore
  27. implicit val semigroup: Semigroup[V]

    Definition Classes
    MergeableMemcacheStore → Mergeable
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  29. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from MergeableStore[K, V]

Inherited from Mergeable[K, V]

Inherited from ConvertedStore[String, K, ChannelBuffer, V]

Inherited from Store[K, V]

Inherited from WritableStore[K, Option[V]]

Inherited from ConvertedReadableStore[String, K, ChannelBuffer, V]

Inherited from AbstractReadableStore[K, V]

Inherited from ReadableStore[K, V]

Inherited from Closable

Inherited from AnyRef

Inherited from Any

Ungrouped