src/flask_caching/backends/uwsgicache.py
raw| 1 | import warnings |
| 2 | |
| 3 | from flask_caching.contrib.uwsgicache import UWSGICache as _UWSGICache |
| 4 | |
| 5 | |
| 6 | class UWSGICache(_UWSGICache): |
| 7 | def __init__(self, *args, **kwargs): |
| 8 | warnings.warn( |
| 9 | "Importing UWSGICache from flask_caching.backends is deprecated, " |
| 10 | "use flask_caching.contrib.uwsgicache.UWSGICache instead", |
| 11 | category=DeprecationWarning, |
| 12 | stacklevel=2, |
| 13 | ) |
| 14 | |
| 15 | super().__init__(*args, **kwargs) |