SessionCache

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

The session based client is the default

Attributes

Graph
Supertypes
trait HttpCaching
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

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

Inherited methods

def baseUri: String

Attributes

Inherited from:
HttpCaching
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 defaultSource: String

Attributes

Inherited from:
HttpCaching
def domain: String

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
def httpClientV2: HttpClientV2

Attributes

Inherited from:
HttpCaching