Beaver.MLIR.CompilationCache (beaver v0.4.8)

Copy Markdown

Common access to the incremental compiler's memory and filesystem caches.

A cache can be :memory, {:memory, server}, {:file, directory}, a memory cache server, or a Beaver.MLIR.CompilationCache.File value.

Summary

Types

cache()

@type cache() ::
  :memory
  | {:memory, GenServer.server()}
  | {:file, Path.t()}
  | GenServer.server()
  | Beaver.MLIR.CompilationCache.File.t()

Functions

clear(cache)

@spec clear(cache()) :: :ok | {:error, term()}

delete(cache, key)

@spec delete(cache(), String.t()) :: :ok | {:error, term()}

get(cache, key)

@spec get(cache(), String.t()) :: {:ok, map()} | :miss | {:error, term()}

put(cache, key, value)

@spec put(cache(), String.t(), map()) :: :ok | {:error, term()}