Skip to main content

Module cache

Module cache 

Source

Structs§

CacheConfig

Functions§

delete_from_cache
Delete a specific file from the cache
ensure_cache_dir
Ensure the cache directory exists
generate_cache_key
Generate a cache key from text or URL
get_cache_dir
Get the current cache directory
get_cache_path
Get the full path for a cached file
is_cached
Check if a file exists in the cache
retrieve_from_cache
Retrieve data from the cache
retrieve_from_cache_with_buffer
retrieve_pcm_from_cache
Retrieve decoded PCM samples (i16) from the cache stored as raw little-endian bytes
retrieve_pcm_from_cache_at
Retrieve decoded PCM samples (i16) from the cache starting at sample_offset samples in, seeking past the skipped bytes instead of reading them.
set_cache_dir
Set the cache directory for the media cache
store_in_cache
Store data in the cache
store_in_cache_vectored
store_pcm_in_cache
Store decoded PCM samples (i16) in the cache as raw little-endian bytes