Dagger.EngineCache (dagger v0.19.4)

View Source

A cache storage for the Dagger engine

Summary

Functions

The current set of entries in the cache

A unique identifier for this EngineCache.

The maximum bytes to keep in the cache without pruning.

The target amount of free disk space the garbage collector will attempt to leave.

Prune the cache of releaseable entries

The minimum amount of disk space this policy is guaranteed to retain.

The target number of bytes to keep when pruning.

Types

t()

@type t() :: %Dagger.EngineCache{client: term(), query_builder: term()}

Functions

entry_set(engine_cache, optional_args \\ [])

@spec entry_set(t(), [{:key, String.t() | nil}]) :: Dagger.EngineCacheEntrySet.t()

The current set of entries in the cache

id(engine_cache)

@spec id(t()) :: {:ok, Dagger.EngineCacheID.t()} | {:error, term()}

A unique identifier for this EngineCache.

max_used_space(engine_cache)

@spec max_used_space(t()) :: {:ok, integer()} | {:error, term()}

The maximum bytes to keep in the cache without pruning.

min_free_space(engine_cache)

@spec min_free_space(t()) :: {:ok, integer()} | {:error, term()}

The target amount of free disk space the garbage collector will attempt to leave.

prune(engine_cache, optional_args \\ [])

@spec prune(t(), [{:use_default_policy, boolean() | nil}]) :: :ok | {:error, term()}

Prune the cache of releaseable entries

reserved_space(engine_cache)

@spec reserved_space(t()) :: {:ok, integer()} | {:error, term()}

The minimum amount of disk space this policy is guaranteed to retain.

target_space(engine_cache)

@spec target_space(t()) :: {:ok, integer()} | {:error, term()}

The target number of bytes to keep when pruning.