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

View Source

Manages caching for terminal animations using the unified caching system.

Summary

Functions

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.

Parameters

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

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.