ExGitEngine. Cache behaviour
(ex_git_engine v0.9.0)
Copy Markdown
Behaviour for caching Git operations.
Summary
Callbacks
Fetches the value for a specific cache_key.
Initialize the cache for the given path.
Returns the cache key for the given op or nil if the operation should not be cached.
Puts the given cache_entry under cache_key.
Types
Callbacks
@callback fetch_cache(cache(), cache_key()) :: cache_entry() | nil
Fetches the value for a specific cache_key.
Initialize the cache for the given path.
Returns the cache key for the given op or nil if the operation should not be cached.
@callback put_cache(cache(), cache_key(), cache_entry()) :: :ok
Puts the given cache_entry under cache_key.