Raxol.Terminal.Config.AnimationCache (Raxol v0.3.0)

View Source

Manages caching for terminal animations.

Summary

Functions

cache_animation(animation_path, animation_type)

@spec cache_animation(String.t(), atom()) :: :ok | {:error, atom()}

clear_animation_cache()

@spec clear_animation_cache() :: :ok

decompress_animation(compressed_data)

@spec decompress_animation(binary()) :: binary()

get_animation_cache_stats()

@spec get_animation_cache_stats() :: map()

get_cache_size()

@spec get_cache_size() :: non_neg_integer()

get_cached_animation(animation_path)

@spec get_cached_animation(String.t() | nil) :: map() | nil

init_animation_cache()

@spec init_animation_cache() :: :ok

preload_animation(animation_path)

@spec preload_animation(String.t()) :: {:ok, atom()} | {:error, atom()}

preload_animations()

@spec preload_animations() :: :ok