ShortLivedHttpCaching

uk.gov.hmrc.http.cache.client.ShortLivedHttpCaching

A cache client with a defined short lived TTL, i.e. longer than a user's browser session

Attributes

Graph
Supertypes
trait HttpCaching
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def cache[A](cacheId: String, formId: String, body: A)(implicit hc: HeaderCarrier, wts: Writes[A], ec: ExecutionContext): Future[CacheMap]
def fetch(cacheId: String)(implicit hc: HeaderCarrier, ec: ExecutionContext): Future[Option[CacheMap]]
def fetchAndGetEntry[T](cacheId: String, key: String)(implicit hc: HeaderCarrier, rds: Reads[T], ec: ExecutionContext): Future[Option[T]]
def remove(cacheId: String)(implicit hc: HeaderCarrier, ec: ExecutionContext): Future[Unit]

Inherited methods

protected def buildUri(source: String, id: String): String

Attributes

Inherited from:
HttpCaching
def cache[A](source: String, cacheId: String, formId: String, body: A)(implicit wts: Writes[A], hc: HeaderCarrier, ec: ExecutionContext): Future[CacheMap]

Attributes

Inherited from:
HttpCaching
protected def cachingVerbs: CachingVerbs

Attributes

Inherited from:
HttpCaching
def fetch(source: String, cacheId: String)(implicit hc: HeaderCarrier, ec: ExecutionContext): Future[Option[CacheMap]]

Attributes

Inherited from:
HttpCaching
def fetchAndGetEntry[T](source: String, cacheId: String, key: String)(implicit hc: HeaderCarrier, rds: Reads[T], ec: ExecutionContext): Future[Option[T]]

Attributes

Inherited from:
HttpCaching

Inherited and Abstract methods

def baseUri: String

Attributes

Inherited from:
HttpCaching
def defaultSource: String

Attributes

Inherited from:
HttpCaching
def domain: String

Attributes

Inherited from:
HttpCaching
def httpClientV2: HttpClientV2

Attributes

Inherited from:
HttpCaching