Esempio n. 1
0
 def __init__(self,
              timeout: int = 60 * 60,
              threshold: int = 100,
              *args,
              **kwargs):
     OriginalCache.__init__(self, config={}, *args, **kwargs)
     self.config["CACHE_TYPE"] = "null"
     self.config["CACHE_THRESHOLD"] = threshold
     self.config["CACHE_DEFAULT_TIMEOUT"] = timeout