/
githubmirror
/
flask
Обзор
Документация
Войти
/
githubmirror
/
flask
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
1.0.x
docs/patterns/caching.rst
18 строк
676 B
Andrew Crouse
Update documentation for users to use flask-caching instead of the deprecated Werkzeug cache
13 ноя 2018, 22:03
Не верифицирован
13 ноя 2018, 22:03
aec0cdc
Код
Авторство
О чём код?
.. _caching-pattern: Caching ======= When your application runs slow, throw some caches in. Well, at least it's the easiest way to speed up things. What does a cache do? Say you have a function that takes some time to complete but the results would still be good enough if they were 5 minutes old. So then the idea is that you actually put the result of that calculation into a cache for some time. Flask itself does not provide caching for you, but `Flask-Caching`_, an extentions for Flask does. Flask-Caching supports various backends, and it is even possible to develop your own caching backend. .. _Flask-Caching: https://flask-caching.readthedocs.io/en/latest/