Module ryot_utils::cache
source · Structs§
- A thread-safe, generic cache structure leveraging
Arc
andRwLock
wrapped around aHashMap
. This cache is suitable for environments where data needs to be accessed by multiple threads concurrently. For single-threaded access, use theSimpleCache
structure instead. - A generic cache structure leveraging
HashMap
for storing and quickly accessing data. This structure is particularly useful for caching expensive computations, assets, or other data for rapid retrieval.
Enums§
- Defines system sets for managing cache-related systems. This enum is used to organize and control the execution order of systems that interact with caches, allowing for a structured update and clean-up process.