Default

pekko.contrib.persistence.mongodb.MongoCollectionCache.Default
case class Default[C]() extends MongoCollectionCache[C]

Naive cache that retains cached collections forever.

Type parameters

C

Collection type.

Attributes

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

Members list

Value members

Concrete methods

override def getOrElseCreate(collectionName: String, collectionCreator: String => C): C

Retrieve a collection from the cache if it exists or otherwise create it using an IDEMPOTENT procedure.

Retrieve a collection from the cache if it exists or otherwise create it using an IDEMPOTENT procedure.

Value parameters

collectionCreator

Creator of the collection. Must be idempotent.

collectionName

Name of the collection.

Attributes

Definition Classes
override def invalidate(collectionName: String): Unit

Attributes

Definition Classes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product