Raxol.Terminal.Config.AnimationCache (Raxol v2.0.1)

View Source

Manages 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

cache_animation(animation_path, animation_type)

Caches an animation from a file.

Parameters

  • animation_path - Path to the animation file
  • animation_type - Type of animation (:gif, :video, :shader, :particle)

cache_animation_data(animation_key, animation_data)

Caches animation data directly (for testing and in-memory usage).

Parameters

  • animation_key - Key to store the animation under
  • animation_data - Animation data to cache

clear_animation_cache()

Clears the animation cache.

decompress_animation(compressed_data)

Decompresses an animation.

Parameters

  • compressed_data - Compressed animation data

get_animation_cache_stats()

Gets animation cache statistics.

get_cache_size()

Gets the current cache size.

get_cached_animation(animation_path)

Gets a cached animation.

Parameters

  • animation_path - Path to the animation file

init_animation_cache()

Initializes the animation cache.

preload_animation(animation_path)

Preloads a single animation.

Parameters

  • animation_path - Path to the animation file

preload_animations()

Preloads animations from the preload directory.