File: api.rst

package info (click to toggle)
flask-caching 2.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 480 kB
  • sloc: python: 2,826; makefile: 193; sh: 17
file content (28 lines) | stat: -rw-r--r-- 697 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
API
===

This section contains the API documentation of the Flask-Caching extension and
lists the backends which are supported out of the box via cachelib.
The `Configuration <index.html#configuring-flask-caching>`_ section explains
how the backends can be used.


.. module:: flask_caching


Cache API
---------

.. autoclass:: Cache
   :members: init_app, get, set, add, delete, get_many, set_many, delete_many,
             has, clear, cached, memoize, delete_memoized, delete_memoized_verhash


Backends
--------

.. versionchanged::  1.11.0
   flask-caching now uses cachelib as backend. See `cachelib API`_ for further details.


.. _cachelib API: https://cachelib.readthedocs.io/en/stable/