diff --git a/bemani/backend/base.py b/bemani/backend/base.py index 3b7b137..ff50548 100644 --- a/bemani/backend/base.py +++ b/bemani/backend/base.py @@ -11,6 +11,7 @@ from bemani.common import ( GameConstants, RegionConstants, Time, + cache, ) from bemani.data import Config, Data, Arcade, Machine, UserID, RemoteUser @@ -186,6 +187,10 @@ class Base(ABC): self.config = config self.model = model + # Provided purely for convenience. You can also import cache directly from bemani.common + # in order to use the object for decorators such as @cache.memoize. + self.cache = cache + @classmethod def create( cls,