mirror of
https://github.com/DragonMinded/bemaniutils.git
synced 2026-09-10 03:15:14 -05:00
Provide a convenience wrapper to the cache global.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user