From 0351fe306469845c10b4856ab577cf956294e260 Mon Sep 17 00:00:00 2001 From: Ramakrishna Sakhamuru Date: Wed, 11 Dec 2024 16:03:49 +0530 Subject: [PATCH] Added method to pull data for Cache --- doajtest/mocks/models_Cache.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doajtest/mocks/models_Cache.py b/doajtest/mocks/models_Cache.py index d0a91ddad..587799afe 100644 --- a/doajtest/mocks/models_Cache.py +++ b/doajtest/mocks/models_Cache.py @@ -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):