agora.cache package¶
Submodules¶
agora.cache.cache module¶
-
class
agora.cache.cache.LRUCache(default_ttl, max_entries)[source]¶ Bases:
agora.cache.cache.BaseCacheAn in-memory LRU cache.
- Parameters:
default_ttl (
int) – the default amount of time, in seconds, that an entry will be cached if no other TTL is provided.max_entries (
int) – the maximum number of entries the cache will hold.