Cache

sttp.client4.caching.Cache
trait Cache[F[_]]

A cache interface to be used with CachingBackend.

Type parameters

f

The effect type, sttp.shared.Identity for direct-style (synchronous). Must be the same as used by the backend, which is being wrapped.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def close(): F[Unit]
def delete(key: Array[Byte]): F[Unit]
def get(key: Array[Byte]): F[Option[Array[Byte]]]
def set(key: Array[Byte], value: Array[Byte], ttl: FiniteDuration): F[Unit]