KFoxder / django-cache-helper

Serious WIP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

django-cache-helper

django-cache-helper is a simple tool for making memoizing/caching functions, methods, and class methods a little bit easier. It is largely based off of django-cache-utils, however, since cache-utils did not support memoization of a model methods by instance and carried other features I didn't need, django-cache-helper was created.

In order to memoize/cache a function/method/class_method:

@cached(60*60)
def foo(bar):
	return bar

@property
@cached(60*60)
def foo(self):
	return self.id + 2

About

Serious WIP


Languages

Language:Python 100.0%