Metadata-Version: 2.1
Name: django-sqlite-file-cache
Version: 0.4.2
Summary: A Django cache backend which has a similar API to FileBasedCache, but reduces the number of inodes used
Home-page: https://github.com/murrple-1/django-sqlite-file-cache
Author: Murray Christopherson
Author-email: murraychristopherson@gmail.com
License: UNKNOWN
Keywords: django cache sqlite sqlite2 sqlite3 file filebased
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Description-Content-Type: text/markdown
Requires-Dist: six
Requires-Dist: Django

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

[![Build Status](https://travis-ci.com/murrple-1/django-sqlite-file-cache.svg?branch=main)](https://travis-ci.com/murrple-1/django-sqlite-file-cache) [![Coverage Status](https://coveralls.io/repos/github/murrple-1/django-sqlite-file-cache/badge.svg?branch=main)](https://coveralls.io/github/murrple-1/django-sqlite-file-cache?branch=main) [![PyPI version](https://badge.fury.io/py/django-sqlite-file-cache.svg)](https://badge.fury.io/py/django-sqlite-file-cache)

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

# Installation

`pip install django-sqlite-file-cache`

# Usage

## Add to your Django CACHES

```python
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


