跳转到主要内容

一个简单的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 (5.0 kB 查看哈希值)

上传时间 源码

由以下支持