A simple django ORM caching layer.
Project description
Stockpile provides limited automatic caching and invalidation for Django models through the ORM. Objects fetched through .objects.get(pk=..) or .objects.get(id=..) are cached by the primary key. In addition, there is a way to get objects with the methods .objects.pk_in(id_list) and .objects.id_in(id_list).
Requirements
Stockpile requires Django 1.3. It was written and tested on Python 2.6.
Installation
Get it from [pypi](http://pypi.python.org/pypi/django-cache-stockpile):
`bash pip install django-cache-stockpile `
or [github](http://github.com/streeter/django-cache-stockpile):
`bash pip install -e git://github.com/streeter/django-cache-stockpile.git#egg=django-cache-stockpile `
Running Tests
`bash git clone git://github.com/streeter/django-cache-stockpile.git cd django-cache-stockpile pip install -r requirements.txt python runtests.py `
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-cache-stockpile-0.1.0.tar.gz
.
File metadata
- Download URL: django-cache-stockpile-0.1.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 348bbd18744ec5af5d7eb61d38d2b9cb2629d6b734eb1d69a6955aadb682b1f3 |
|
MD5 | eae3f2a8f347a8d695710c668cf075bd |
|
BLAKE2b-256 | eba1727c9b5ce4f2b5c46ed5f668a481f3a10a957461f881829c9c8a49ee5233 |