diff --git a/class_cache/backends.py b/class_cache/backends.py index 695fa73..f0df6a8 100644 --- a/class_cache/backends.py +++ b/class_cache/backends.py @@ -315,7 +315,7 @@ def __getitem__(self, key: KeyType) -> ValueType: return self._decode(super().__getitem__(key)) def __setitem__(self, key: KeyType, value: ValueType) -> None: - self._backend[key] = self._encode(value) + super().__setitem__(key, self._encode(value)) def __delitem__(self, key: KeyType) -> None: return super().__delitem__(key)