EntityCache

uk.gov.hmrc.mongo.cache.EntityCache
trait EntityCache[CacheId, A]

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

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def deleteFromCache(cacheId: CacheId): Future[Unit]
def getFromCache(cacheId: CacheId): Future[Option[A]]
def putCache(cacheId: CacheId)(data: A)(implicit ec: ExecutionContext): Future[Unit]

Abstract fields

val format: Format[A]