django-sqlite-file-cache-0.6.2
توضیحات
A Django cache backend which has a similar API to FileBasedCache, but reduces the number of inodes used
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django-sqlite-file-cache-0.6.2 |
| نام | django-sqlite-file-cache |
| نسخه کتابخانه | 0.6.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Murray Christopherson |
| ایمیل نویسنده | murraychristopherson@gmail.com |
| آدرس صفحه اصلی | https://github.com/murrple-1/django-sqlite-file-cache |
| آدرس اینترنتی | https://pypi.org/project/django-sqlite-file-cache/ |
| مجوز | - |
# django-sqlite-file-cache
A Django cache backend which has a similar API to FileBasedCache, but reduces the number of inodes used.
[](https://travis-ci.com/murrple-1/django-sqlite-file-cache) [](https://coveralls.io/github/murrple-1/django-sqlite-file-cache?branch=main) [](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
نیازمندی
| مقدار | نام |
|---|---|
| - | Django |
نحوه نصب
نصب پکیج whl django-sqlite-file-cache-0.6.2:
pip install django-sqlite-file-cache-0.6.2.whl
نصب پکیج tar.gz django-sqlite-file-cache-0.6.2:
pip install django-sqlite-file-cache-0.6.2.tar.gz