diff --git a/tibi_hardlinks/cache.py b/tibi_hardlinks/cache.py index bf34060..51d2042 100644 --- a/tibi_hardlinks/cache.py +++ b/tibi_hardlinks/cache.py @@ -13,7 +13,7 @@ class Cache: atexit.register(self.store) def read(self, key): - if self.store is None: + if self._store is None: self.load() try: return self._store[key] @@ -21,7 +21,7 @@ class Cache: return None def write(self, key, data): - if self.store is None: + if self._store is None: self.load() self._store[key] = data