<commit_before>Flask-Cache
================

.. module:: flaskext.cache

Installation
------------

Install the extension with one of the following commands::

    $ easy_install Flask-Cache

or alternatively if you have pip installed::

    $ pip install Flask-Cache


Configuring Flask-Cache
-----------------------

The following configuration values exist for Flask-Cache:

.. tabularcolumns:: |p{6.5cm}|p{8.5cm}|

=============================== =========================================
``CACHE_TYPE``                  Specifies which type of caching object to
                                use. This is an import string that will
                                be imported and instantiated. It is
                                assumed that the import object is a
                                function that will return a cache
                                object that adheres to the werkzeug cache
                                API.

                                For werkzeug.contrib.cache objects, you
                                do not need to specify the entire
                                import string, just one of the following
                                names.

                                Built-in cache types:

                                * **null**: NullCache
                                * **simple**: SimpleCache
                                * **memcached**: MemcachedCache
                                * **gaememcached**: GAEMemcachedCache
                                * **redis**: RedisCache (Werkzeug 0.7 required)
                                * **filesystem**: FileSystemCache

``CACHE_ARGS``                  Optional list to unpack and pass during<commit_msg>Added note for pylibmc pull #33<commit_after>Flask-Cache
================

.. module:: flaskext.cache

Installation
------------

Install the extension with one of the following commands::

    $ easy_install Flask-Cache

or alternatively if you have pip installed::

    $ pip install Flask-Cache


Configuring Flask-Cache
-----------------------

The following configuration values exist for Flask-Cache:

.. tabularcolumns:: |p{6.5cm}|p{8.5cm}|

=============================== =========================================
``CACHE_TYPE``                  Specifies which type of caching object to
                                use. This is an import string that will
                                be imported and instantiated. It is
                                assumed that the import object is a
                                function that will return a cache
                                object that adheres to the werkzeug cache
                                API.

                                For werkzeug.contrib.cache objects, you
                                do not need to specify the entire
                                import string, just one of the following
                                names.

                                Built-in cache types:

                                * **null**: NullCache
                                * **simple**: SimpleCache
                                * **memcached**: MemcachedCache (pylibmc required)
                                * **gaememcached**: GAEMemcachedCache
                                * **redis**: RedisCache (Werkzeug 0.7 required)
                                * **filesystem**: FileSystemCache

``CACHE_ARGS``                  Optional list to unpack and pass during
{'fraction_non_alphanumeric': 0.1223267750213858, 'fraction_numerical': 0.003992015968063872, 'mean_word_length': 1.1979949874686717, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 20, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2430995', 'n_tokens_mistral': 759, 'n_tokens_neox': 699, 'n_words': 254}