MongoCollectionCache

pekko.contrib.persistence.mongodb.MongoCollectionCache
See theMongoCollectionCache companion trait

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case class Default[C]() extends MongoCollectionCache[C]

Naive cache that retains cached collections forever.

Naive cache that retains cached collections forever.

Type parameters

C

Collection type.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Expiring[C](expireAfterWrite: Duration) extends MongoCollectionCache[C]

Naive implementation of a cache whose entries expire after a period of time. Memory consumption is not bounded.

Naive implementation of a cache whose entries expire after a period of time. Memory consumption is not bounded.

Type parameters

C

Collection type.

Value parameters

expireAfterWrite

Duration that a cached collection remains valid.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Single[C](config: Config) extends MongoCollectionCache[C]

Naive implementation of a cache that holds a single entry.

Naive implementation of a cache that holds a single entry.

Type parameters

C

Collection type.

Value parameters

config

Cache configuration.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def apply[C](config: Config, path: String, system: ActorSystem): MongoCollectionCache[C]