一个简单的Django ORM缓存层。
项目描述
Stockpile通过ORM为Django模型提供有限的自动缓存和失效。通过`.objects.get(pk=..)`或`.objects.get(id=..)`获取的对象通过主键进行缓存。此外,还可以通过`.objects.pk_in(id_list)`和`.objects.id_in(id_list)`方法获取对象。
需求
Stockpile需要Django 1.3。它是在Python 2.6上编写和测试的。
安装
从[pypi](http://pypi.python.org/pypi/django-cache-stockpile)获取
`bash pip install django-cache-stockpile `
或[github](http://github.com/streeter/django-cache-stockpile)
`bash pip install -e git://github.com/streeter/django-cache-stockpile.git#egg=django-cache-stockpile `
运行测试
`bash git clone git://github.com/streeter/django-cache-stockpile.git cd django-cache-stockpile pip install -r requirements.txt python runtests.py `
项目详情
关闭
django-cache-stockpile-0.1.0.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 348bbd18744ec5af5d7eb61d38d2b9cb2629d6b734eb1d69a6955aadb682b1f3 |
|
MD5 | eae3f2a8f347a8d695710c668cf075bd |
|
BLAKE2b-256 | eba1727c9b5ce4f2b5c46ed5f668a481f3a10a957461f881829c9c8a49ee5233 |