MongoCacheRepository

uk.gov.hmrc.mongo.cache.MongoCacheRepository
See theMongoCacheRepository companion object
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
Graph
Supertypes
trait MongoDatabaseCollection
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited classlikes

implicit class ObservableFuture[T](obs: => Observable[T]) extends ObservableFuture[T]

Attributes

Inherited from:
ObservableFutureImplicits
Supertypes
class ObservableImplicits.this.ObservableFuture[T]
class Object
trait Matchable
class Any
implicit class SingleObservableFuture[T](obs: => SingleObservable[T]) extends SingleObservableFuture[T]

Attributes

Inherited from:
ObservableFutureImplicits
Supertypes
class ObservableImplicits.this.SingleObservableFuture[T]
class Object
trait Matchable
class Any

Value members

Concrete methods

def delete[A](cacheId: CacheId)(dataKey: DataKey[A]): Future[Unit]
def deleteEntity(cacheId: CacheId): Future[Unit]
def findById(cacheId: CacheId): Future[Option[CacheItem]]
def get[A : Reads](cacheId: CacheId)(dataKey: DataKey[A]): Future[Option[A]]
def put[A : Writes](cacheId: CacheId)(dataKey: DataKey[A], data: A): Future[CacheItem]

Inherited methods

def ensureIndexes(): Future[Seq[String]]

Attributes

Inherited from:
PlayMongoRepository
def ensureSchema(): Future[Unit]

Attributes

Inherited from:
PlayMongoRepository

Inherited fields

lazy val collection: MongoCollection[CacheItem]

Attributes

Inherited from:
PlayMongoRepository
final val domainFormat: Format[CacheItem]

Attributes

Inherited from:
PlayMongoRepository
final val indexes: Seq[IndexModel]

Attributes

Inherited from:
PlayMongoRepository
lazy val initialised: Future[Unit]

Attributes

Inherited from:
PlayMongoRepository
final val optSchema: Option[BsonDocument]

Attributes

Inherited from:
PlayMongoRepository

Implicits

Inherited implicits

final implicit def ObservableFuture[T](obs: => Observable[T]): ObservableFuture[T]

Attributes

Inherited from:
ObservableFutureImplicits
final implicit def SingleObservableFuture[T](obs: => SingleObservable[T]): SingleObservableFuture[T]

Attributes

Inherited from:
ObservableFutureImplicits