Sections
Personal tools
You are here: Home » Faculty and Staff » Hale, Walker » November 15 » Cache Decorator
 

Cache Decorator

Another sample recipe. This decorator can be applied to any callable. It will cache the results of the computation, so that if the callable is invoked again with the same parameters the result will be fetched from the cache.

The link address is: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/325205

Added by walker.hale
Last modified 2006-11-24 05:14 PM