Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A simple DogpileCache helper plugin for muffin framework

Project Description

Muffin-DogpileCache – A simple DogpileCache helper plugin for muffin framework.


  • python >= 3.4
  • muffin >= 0.5.5


Muffin-DogpileCache should be installed using pip:

pip install muffin-dogpilecache


Add muffin-dogpilecache to muffin plugin list:

import muffin

app = muffin.Application(


Add your configurations for dogpile.cache:

    'cache.local.backend': 'dogpile.cache.dbm',
    'cache.local.arguments.filename': './dbmfile.dbm',
    'cache.redis.backend': 'dogpile.cache.redis',
    '': 'localhost',
    'cache.redis.arguments.port': 6379,

Associate each configuration with a dogpile.cache region:

    'default': 'cache.local.',
    'redis': 'cache.redis.',

Decorate your functions:
def my_local_cached_function():
def my_redis_cached_function():


Option Description
DOGPILECACHE_CONFIGS Configurations for regions
DOGPILECACHE_REGIONS Regions related with the configurations prefix
DOGPILECACHE_TEST If true, set regions with dogpile.cache.null
DOGPILECACHE_FUNCTION_KEY_GENERATOR A function to generate custom cache keys


Licensed under a MIT license.

Release History

This version
History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(3.6 kB) Copy SHA256 Hash SHA256
Source Feb 19, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting