Skip to main content

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.

Project details

Download files

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

Files for muffin-dogpilecache, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size muffin-dogpilecache-0.0.2.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page