Cacheops 支持自动或手动查询集缓存和自动粒度event-driven失效的灵活应用程序。 它使用redis作为ORM缓存的后端,而将redis或文件系统用于简单的time-invalidatedone。 还有更多: decorators将任何用户函数或视图作为查询集或按时间缓存 django和jinja2模板的扩展 透明事务支持 dog-pile预防机制 几招让django更快 Requirements...
Python中的django-cacheops是什么?Python中的django-cacheops是什么?具有自动颗粒化事件驱动失效功能的 ORM...
该项目使用 redis 作为缓存,可通过装饰器设置数据库查询结果的过期时间。 收录于: 第81 期 标签: ORM Django Python 没用过 用过 评分: 发布 微信扫码赞助本站 服务器还剩154天 +1年 : 推荐项目 换一换 joke2k/faker 18.3k Python config 20.9k ...
django-cacheops是用于ORM缓存的python库,具有自动粒度事件驱动失效功能。 它使用redis作为ORM缓存的后端,并将redis或文件系统用于简单的时间无效的后端。 特点 django-cacheops还有更多的特点: 装饰器以查询集或时间的形式缓存任何用户功能或视图 django和jinja2模板的扩展 ...
description='A slick ORM cache with automatic granular event-driven invalidation for Django.', long_description=README, url='http://github.com/Suor/django-cacheops', license='BSD',packages=[ 'cacheops', 'cacheops.management', 'cacheops.management.commands',...
A slick ORM cache with automatic granular event-driven invalidation. - Up to 7.1 · Suor/django-cacheops@7307e35
$ git clone git://github.com/Suor/django-cacheops.git $ pip install -e django-cacheops Setup Addcacheopsto yourINSTALLED_APPS. Setup redis connection and enable caching for desired models: CACHEOPS_REDIS={'host':'localhost',# redis-server is on same machine'port':6379,# default redis port...
Django templates integration Cacheops provides tags to cache template fragments. They mimic @cached_as and @cached decorators, however, they require explicit naming of each fragment: {% load cacheops %} {% cached_as <queryset> <fragment_name> [<extra1> <extra2> ...] %} ... some templ...
Python 2.6+ or 3.3+, Django 1.3+ and Redis 2.6+. Installation Using pip: $ pip install django-cacheops Or you can get latest one from github: $ git clone git://github.com/Suor/django-cacheops.git $ ln -s `pwd`/django-cacheops/cacheops/ /somewhere/on/python/path/ Setup Add cacheo...
$ pip install django-cacheops Or you can get latest one from github: $ git clone git://github.com/Suor/django-cacheops.git $ pip install -e django-cacheops Setup Add cacheops to your INSTALLED_APPS. Setup redis connection and enable caching for desired models: CACHEOPS_REDIS = { 'host':...