Skip to content

Commit

Permalink
Added method to pull data for Cache
Browse files Browse the repository at this point in the history
  • Loading branch information
RK206 committed Dec 11, 2024
1 parent 7118dda commit 0351fe3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doajtest/mocks/models_Cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ def is_stale(self):
def marked_regen(self):
pass

@classmethod
def pull(cls, id):
return cls.__memory__.get(id)

class ModelCacheMockFactory(object):
@classmethod
def in_memory(cls):
Expand Down

0 comments on commit 0351fe3

Please sign in to comment.