CompilationCache

smithy4s.schema.CompilationCache$
See theCompilationCache companion trait

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def make[F[_]]: CompilationCache[F]

Creates a compilation cache that can be used to speed up the initialisation of interpreters and reduce their memory footprint by sharing entities that have the same Schemas.

Creates a compilation cache that can be used to speed up the initialisation of interpreters and reduce their memory footprint by sharing entities that have the same Schemas.

This should be used with care, as reckless usage can lead to memory leaks, since Schemas are not guaranteed to have stable hashCodes/equality methods when re-instantiated.

Attributes

def nop[F[_]]: CompilationCache[F]

A no-op cache that doesn't actually cache anything but just forwards queries to the fetch function.

A no-op cache that doesn't actually cache anything but just forwards queries to the fetch function.

Attributes