src.common.cache
Caching utilities for performance optimization in the Wordle Solver.
Functions
Decorator to cache pattern calculation results. |
|
|
Decorator to cache strategy calculation results. |
|
Decorator to cache word frequency calculations. |
|
Cached version of word pattern calculation. |
Clear all performance caches. |
|
Get statistics about cache usage. |
Classes
|
Time-to-live cache implementation. |
- class src.common.cache.TTLCache(max_size=128, ttl_seconds=300)[source]
Time-to-live cache implementation.
- src.common.cache.cache_word_frequency(func)[source]
Decorator to cache word frequency calculations.
- src.common.cache.cache_strategy_results(func)[source]
Decorator to cache strategy calculation results.
- src.common.cache.cache_pattern_calculation(func)[source]
Decorator to cache pattern calculation results.