Skip to main content

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 `

Download files

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

Source Distribution

django-cache-stockpile-0.1.0.tar.gz (5.0 kB view details)

Uploaded Source

File details

Details for the file django-cache-stockpile-0.1.0.tar.gz.

File metadata

File hashes

Hashes for django-cache-stockpile-0.1.0.tar.gz
Algorithm Hash digest
SHA256 348bbd18744ec5af5d7eb61d38d2b9cb2629d6b734eb1d69a6955aadb682b1f3
MD5 eae3f2a8f347a8d695710c668cf075bd
BLAKE2b-256 eba1727c9b5ce4f2b5c46ed5f668a481f3a10a957461f881829c9c8a49ee5233

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page