You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installed latest version of aiocache: pip install aiocache
Code: cache = Cache(Cache.MEMORY)
Error: if not issubclass(cache_class, BaseCache):
TypeError: issubclass() arg 1 must be a class
The text was updated successfully, but these errors were encountered:
New version of aiocache==0.12.3 will not raise TypeError again at code cache = Cache(Cache.MEMORY)
But if you are using decorator to cache the result which you have seen a post ask you to do with the following code, the TypeError will raise at there again.
It's incorrect! According to the usage of official page, to work with decorator, you can directly give the Cache.MEMORY to cache parameter instead of Cache(Cahce.MEMORY)
Using the follow code can be useful(at least on my server)
Installed latest version of aiocache: pip install aiocache
Code: cache = Cache(Cache.MEMORY)
Error: if not issubclass(cache_class, BaseCache):
TypeError: issubclass() arg 1 must be a class
The text was updated successfully, but these errors were encountered: