Skip to content

jb076/django-cache-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-cache-helper

django-cache-helper is a simple tool for making 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 caching model methods by instance and carried other features I didn't need, django-cache-helper was created.

In order to 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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages