Skip to main content

A Django cache backend which has a similar API to FileBasedCache, but reduces the number of inodes used

Project description

django-sqlite-file-cache

A Django cache backend which has a similar API to FileBasedCache, but reduces the number of inodes used.

Build Status Coverage Status PyPI version

Supports both Python >=v2.7 and >=3.4.

Installation

pip install django-sqlite-file-cache

Usage

Add to your Django CACHES

CACHES = {
    'default': {
        'BACKEND': 'django_sqlite_file_cache.SQLiteFileCache',
        'LOCATION': '/var/tmp/django_cache/cache.db',
    }
}

Ensure LOCATION path is readable/writable by the web server's user

See https://docs.djangoproject.com/en/3.1/topics/cache/ for more options

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-sqlite-file-cache-0.4.3.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

django_sqlite_file_cache-0.4.3-py2.py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page