Module ryot_utils::cache

source ·

Structs§

  • A thread-safe, generic cache structure leveraging Arc and RwLock wrapped around a HashMap. This cache is suitable for environments where data needs to be accessed by multiple threads concurrently. For single-threaded access, use the SimpleCache 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.