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
Currently, all the storage classes use a dict-like interface (collections.abc.MutableMapping). Unfortunately, there is no syntax support in python for async dict operations, e.g.:
So, this will require a new base storage interface that uses regular methods rather than dict operations.
Ideally, it would be good to merge the storage base class with BaseCache, if there is an elegant way to do it. Currently, they are separate so that BaseCache can have separate references to a key -> response collection and a redirect_key -> key collection.
The text was updated successfully, but these errors were encountered:
JWCook
changed the title
Convert sqlite backend to aiosqlite
Rewrite storage interface + implementations to be async-compatible
Nov 21, 2020
Currently, all the storage classes use a dict-like interface (
collections.abc.MutableMapping
). Unfortunately, there is no syntax support in python for async dict operations, e.g.:So, this will require a new base storage interface that uses regular methods rather than dict operations.
Ideally, it would be good to merge the storage base class with
BaseCache
, if there is an elegant way to do it. Currently, they are separate so thatBaseCache
can have separate references to akey -> response
collection and aredirect_key -> key
collection.The text was updated successfully, but these errors were encountered: