Expand description
Cache and memoization utilities for improved performance
This module provides caching and memoization utilities to improve performance by avoiding redundant computations.
Structs§
- Cache
Builder - A thread-safe cache builder
- Cache
Config - Cache configuration for the library
- TTLSized
Cache - A sized cache with time-to-live (TTL) functionality
Statics§
Functions§
- fibonacci
- Example of how to use the cached attribute
- fibonacci_
no_ cache - Origin of the cached function
fibonacci. - fibonacci_
prime_ cache - Primes the cached function
fibonacci. Example of how to use the cached attribute