View Source Dagger.DaggerEngineCache (dagger v0.13.6)

A cache storage for the Dagger engine

Summary

Functions

The current set of entries in the cache

A unique identifier for this DaggerEngineCache.

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

Prune the cache of releaseable entries

Types

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

Functions

Link to this function

entry_set(dagger_engine_cache)

View Source
@spec entry_set(t()) :: Dagger.DaggerEngineCacheEntrySet.t()

The current set of entries in the cache

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

A unique identifier for this DaggerEngineCache.

Link to this function

keep_bytes(dagger_engine_cache)

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

prune(dagger_engine_cache)

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

Prune the cache of releaseable entries