com.gilt.storeroom

InMemoryStore

class InMemoryStore[K, V] extends IterableStore[K, V]

An in-memory Store implementation. Generally this should only be used for testing or as a cache, since there is no persistence of data once the process terminates.

Linear Supertypes
IterableStore[K, V], Store[K, V], WritableStore[K, Option[V]], ReadableStore[K, V], Closeable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. InMemoryStore
  2. IterableStore
  3. Store
  4. WritableStore
  5. ReadableStore
  6. Closeable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new InMemoryStore()

Value Members

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

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

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

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

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

    Call this method to close the Store when you are done using it.

    Call this method to close the Store when you are done using it.

    This method should be overridden by implementations if any actions need to be taken to close / disconnect from the store.

    Definition Classes
    WritableStoreCloseable
  7. final def eq(arg0: AnyRef): Boolean

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

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

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

    Get a single value from the store, or None if no entry exists for the key.

    Get a single value from the store, or None if no entry exists for the key.

    Definition Classes
    InMemoryStoreReadableStore
  11. def getAll(limit: Int = Int.MaxValue, offset: Int = 0): Enumerator[(K, V)]

    Get all of the mappings in the store.

    Get all of the mappings in the store.

    Optionally, limit and offset may be specified to page through the entries in the store.

    Definition Classes
    InMemoryStoreIterableStore
  12. final def getClass(): Class[_]

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

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

    Definition Classes
    Any
  15. def multiGet(ks: Set[K]): Map[K, Future[Option[V]]]

    Get mutiple values at once.

    Get mutiple values at once.

    A default implementation using get() is provided, but this should be overridden if a more efficient implementation exists for a particular backing store.

    Definition Classes
    ReadableStore
  16. def multiPut(kvs: Map[K, Option[V]]): Map[K, Future[Unit]]

    Add multiple values at once.

    Add multiple values at once.

    A default implementation using put() is provided, but this should be overridden if a more efficient implementation exists for a particular backing store.

    Definition Classes
    WritableStore
  17. final def ne(arg0: AnyRef): Boolean

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

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

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

    Add a new key-value pair to the store, or replace an existing mapping.

    Add a new key-value pair to the store, or replace an existing mapping.

    Definition Classes
    InMemoryStoreWritableStore
  21. val store: Map[K, V]

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

    Definition Classes
    AnyRef
  23. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from IterableStore[K, V]

Inherited from Store[K, V]

Inherited from WritableStore[K, Option[V]]

Inherited from ReadableStore[K, V]

Inherited from Closeable

Inherited from AnyRef

Inherited from Any

Ungrouped