View Source Dagger.EngineCache (dagger v0.14.0)

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

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

Functions

@spec entry_set(t()) :: Dagger.EngineCacheEntrySet.t()

The current set of entries in the cache

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

A unique identifier for this EngineCache.

Link to this function

keep_bytes(engine_cache)

View Source
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.

Link to this function

max_used_space(engine_cache)

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

The maximum bytes to keep in the cache without pruning.

Link to this function

min_free_space(engine_cache)

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

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

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

Prune the cache of releaseable entries

Link to this function

reserved_space(engine_cache)

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