Raxol.Terminal.Config.AnimationCache (Raxol v2.0.1)
View SourceManages caching for terminal animations using the unified caching system.
Summary
Functions
Caches an animation from a file.
Caches animation data directly (for testing and in-memory usage).
Clears the animation cache.
Decompresses an animation.
Gets animation cache statistics.
Gets the current cache size.
Gets a cached animation.
Initializes the animation cache.
Preloads a single animation.
Preloads animations from the preload directory.
Functions
Caches an animation from a file.
Parameters
animation_path- Path to the animation fileanimation_type- Type of animation (:gif, :video, :shader, :particle)
Caches animation data directly (for testing and in-memory usage).
Parameters
animation_key- Key to store the animation underanimation_data- Animation data to cache
Clears the animation cache.
Decompresses an animation.
Parameters
compressed_data- Compressed animation data
Gets animation cache statistics.
Gets the current cache size.
Gets a cached animation.
Parameters
animation_path- Path to the animation file
Initializes the animation cache.
Preloads a single animation.
Parameters
animation_path- Path to the animation file
Preloads animations from the preload directory.