Skip to main content

A simple cache for Django functions and methods

Project description

# django-elephant

[![Build Status](](
[![PyPI version](](
[![Coverage Status](](
[![Code Issues](](

*django-elephant is a simple wrapper to cache responses of Django methods or functions*

## Setup

pip install django-elephant

## Usage
from elephant import memorize

def make_cache_key(function, *args, **kwargs):
return function.__name__

@memorize(cache_key=make_cache_key, timeout=10000)
def foo(bar):
return bar


## Requirements
- Django>=1.4

## Todo
- Create generic cache key function

Project details

Download files

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

Source Distribution

django-elephant-0.0.2.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

django_elephant-0.0.2-py2.py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page