uk.gov.hmrc.mongo.cache

Members list

Type members

Classlikes

trait CacheIdType[-CacheId]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object CacheIdType

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
final case class CacheItem(id: String, data: JsObject, createdAt: Instant, modifiedAt: Instant)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class DataKey[A](unwrap: String) extends AnyVal

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class AnyVal
trait Matchable
class Any
Show all
trait EntityCache[CacheId, A]

A single entity is stored in the cache. Akin to previous ShortLivedCache/Save4Later.

A single entity is stored in the cache. Akin to previous ShortLivedCache/Save4Later.

Attributes

Supertypes
class Object
trait Matchable
class Any
class MongoCacheRepository[CacheId](mongoComponent: MongoComponent, collectionName: String, replaceIndexes: Boolean, ttl: Duration, timestampSupport: TimestampSupport, cacheIdType: CacheIdType[CacheId], extraIndexes: Seq[IndexModel], extraCodecs: Seq[Codec[_]])(implicit ec: ExecutionContext) extends PlayMongoRepository[CacheItem]

Attributes

Companion
object
Supertypes
trait MongoDatabaseCollection
class Object
trait Matchable
class Any

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
class SessionCacheRepository(mongoComponent: MongoComponent, val collectionName: String, replaceIndexes: Boolean, ttl: Duration, timestampSupport: TimestampSupport, sessionIdKey: String, extraIndexes: Seq[IndexModel], extraCodecs: Seq[Codec[_]])(implicit ec: ExecutionContext) extends MongoDatabaseCollection

CacheId is stored in session with sessionIdKey

CacheId is stored in session with sessionIdKey

Attributes

Supertypes
trait MongoDatabaseCollection
class Object
trait Matchable
class Any