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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?