django-cacheback

Smart caching for Django using Celery to refresh cached items asynchronously.

  • 所有者: codeinthehole/django-cacheback
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

=========
Cacheback


Asynchronous cache refreshing for Django

What does this library do?

It's an extensible caching library that refreshes stale cache items
asynchronously using a Celery_ or rq_ task (utilizing django-rq). The key
idea being that it's better to serve a stale item (and populate the cache
asynchronously) than block the response process in order to populate the cache
synchronously.

.. _Celery: http://celeryproject.org/
.. _rq: http://python-rq.org/

Using this library, you can rework your views so that all reads are from
cache - which can be a significant performance boost.

A corollary of this technique is that cache hammering can be handled simply and
elegantly, avoiding sudden surges of expensive reads when a cached item becomes stale.

Do you have good docs?

Yup - over on readthedocs.org_.

.. _over on readthedocs.org: http://django-cacheback.readthedocs.org/en/latest/

Do you support Python 3?

Pythons 2.7, 3.3, 3.4, 3.5, 3.6, 3.7, PyPy, and PyPy3 are supported.

Django versions 1.8 to 2.1 are supported.

Do you have tests?

You betcha!

.. image:: https://secure.travis-ci.org/codeinthehole/django-cacheback.png
:target: https://travis-ci.org/#!/codeinthehole/django-cacheback

Can I use this in my project?

Probably - subject to the MIT license_.

.. _MIT license: https://github.com/codeinthehole/django-cacheback/blob/master/LICENSE

I want to contribute!

Brilliant! Here are the contributing guidelines_.

.. _contributing guidelines: http://django-cacheback.readthedocs.org/en/latest/contributing.html

主要指标

概览
名称与所有者codeinthehole/django-cacheback
主编程语言Python
编程语言Python (语言数: 4)
平台
许可证MIT License
所有者活动
创建于2012-07-28 21:39:30
推送于2024-07-19 09:15:27
最后一次提交2023-06-05 12:11:10
发布数19
最新版本名称2.1.0 (发布于 2020-09-02 10:19:23)
第一版名称0.1 (发布于 2012-08-12 22:26:14)
用户参与
星数376
关注者数12
派生数76
提交数328
已启用问题?
问题数40
打开的问题数5
拉请求数39
打开的拉请求数2
关闭的拉请求数21
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?