View Source Dagger.EngineCache (dagger v0.15.1)

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, after which automatic pruning may kick in.

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

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.

keep_bytes(engine_cache)

This function is deprecated. Use minFreeSpace instead..
@spec keep_bytes(t()) :: {:ok, integer()} | {:error, term()}

The maximum bytes to keep in the cache without pruning, after which automatic pruning may kick in.

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)

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

Prune the cache of releaseable entries

reserved_space(engine_cache)

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