Skip to content

Commit

Permalink
Fix the error: 'SSDataManager' object has no attribute 'eviction_mana…
Browse files Browse the repository at this point in the history
…ger' (#501)

Signed-off-by: SimFG <bang.fu@zilliz.com>
  • Loading branch information
SimFG authored Jul 31, 2023
1 parent 635dca5 commit 7f156ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gptcache/manager/data_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ def __init__(
self.s = s
self.v = v
self.o = o
self.eviction_manager = EvictionManager(self.s, self.v)
self.eviction_base = EvictionBase(
name="memory",
policy=policy,
Expand All @@ -243,7 +244,6 @@ def __init__(
on_evict=self._clear,
)
self.eviction_base.put(self.s.get_ids(deleted=False))
self.eviction_manager = EvictionManager(self.s, self.v)

def _clear(self, marked_keys):
self.eviction_manager.soft_evict(marked_keys)
Expand Down

0 comments on commit 7f156ae

Please sign in to comment.