GithubHelp home page GithubHelp logo

eoinnoble / django-cacheback Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codeinthehole/django-cacheback

0.0 3.0 0.0 570 KB

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

Home Page: http://codeinthehole.com/writing/cacheback-asynchronous-cache-refreshing-for-django/

License: MIT License

Python 98.60% Makefile 0.55% HTML 0.28% Shell 0.57%

django-cacheback's Introduction

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.

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.

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

Can I use this in my project?

Probably - subject to the MIT license.

I want to contribute!

Brilliant! Here are the contributing guidelines.

django-cacheback's People

Contributors

alanjds avatar coagulant avatar codeinthehole avatar fjsj avatar geekfish avatar jacobh avatar jezdez avatar kevin-brown avatar kobold avatar lovemyliwu avatar lpomfrey avatar lukaslundgren avatar lukmdo avatar martinblech avatar mdomans avatar michaelkuty avatar pomali avatar redsnapper8t8 avatar stephrdev avatar svetlyak40wt avatar thedrow avatar thijstriemstra avatar thisisstephenbetts avatar tomwys avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.