diff --git a/wizard-work/beam/lru_cache.py b/wizard-work/beam/lru_cache.py index 3bee782..5cf66fa 100644 --- a/wizard-work/beam/lru_cache.py +++ b/wizard-work/beam/lru_cache.py @@ -66,7 +66,7 @@ class LRUCache: with self._lock: node = self._map.get(key) if node is None: - return None if default is _MISSING else default + return -1 if default is _MISSING else default self._promote(node) return node.value