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
Hi there, it's me again.
One thing I'd like to do is to be able to provide my own backend object instead of going through config with a keyword argument backend on __init__(). This way I can share or have specific backend objects across my code base :)
If this feature is okay, I'll put in the work. Question is : would type checking be required for werkzeug.contrib.BaseCache ?
Cheers
The text was updated successfully, but these errors were encountered:
You are able to easily add your own custom cache backends by exposing a function that can instantiate and return a cache object. CACHE_TYPE will be the import string to your custom function. It should expect to receive three arguments.
app
args
kwargs
Your custom cache object must also subclass the werkzeug.contrib.cache.BaseCache class. Flask-Caching will make sure that threshold is already included in the kwargs options dictionary since it is common to all BaseCache classes.
Hi there, it's me again.
One thing I'd like to do is to be able to provide my own backend object instead of going through config with a keyword argument
backend
on__init__()
. This way I can share or have specific backend objects across my code base :)If this feature is okay, I'll put in the work. Question is : would type checking be required for werkzeug.contrib.BaseCache ?
Cheers
The text was updated successfully, but these errors were encountered: