HttpCaching

uk.gov.hmrc.http.cache.client.HttpCaching
trait HttpCaching

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def baseUri: String
def defaultSource: String
def domain: String
def httpClientV2: HttpClientV2

Concrete methods

protected def buildUri(source: String, id: String): String
def cache[A](source: String, cacheId: String, formId: String, body: A)(implicit wts: Writes[A], hc: HeaderCarrier, ec: ExecutionContext): Future[CacheMap]
protected def cachingVerbs: CachingVerbs
def fetch(source: String, cacheId: String)(implicit hc: HeaderCarrier, ec: ExecutionContext): Future[Option[CacheMap]]
def fetchAndGetEntry[T](source: String, cacheId: String, key: String)(implicit hc: HeaderCarrier, rds: Reads[T], ec: ExecutionContext): Future[Option[T]]