pekko.contrib.persistence.mongodb.MongoCollectionCache
See theMongoCollectionCache companion trait
object MongoCollectionCache
Attributes
- Companion
- trait
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
MongoCollectionCache.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 Serializabletrait Producttrait Equalstrait MongoCollectionCache[C]class Objecttrait Matchableclass AnyShow 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 Serializabletrait Producttrait Equalstrait MongoCollectionCache[C]class Objecttrait Matchableclass AnyShow 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 Serializabletrait Producttrait Equalstrait MongoCollectionCache[C]class Objecttrait Matchableclass AnyShow all
Value members
Concrete methods
In this article