MongoCollectionCache

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

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Default[C]
class Expiring[C]
class Single[C]

Members list

Value members

Abstract methods

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

def invalidate(collectionName: String): Unit