Articles by tag: lru-cache
Loading TOML config with Pydantic in Python
Set up reading settings.toml: tomllib parsing, lru_cache cache, Pydantic validation. Code, typing, examples for middle developers. Learn the details.
API keys for pet projects: HMAC and cache
Learn how to implement a free API with self-sufficient keys, spam protection, and LRU cache. Minimize DB queries for pet projects. Test in playground.