Skip to main content

Module cache

Module cache 

Source
Expand description

Cache and memoization utilities for improved performance

This module provides caching and memoization utilities to improve performance by avoiding redundant computations.

Structs§

CacheBuilder
A thread-safe cache builder
CacheConfig
Cache configuration for the library
TTLSizedCache
A sized cache with time-to-live (TTL) functionality

Statics§

FIBONACCI
Cached static for the fibonacci function.

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