Caching decorator with timeout invalidation

Caching decorator with timeout invalidation 1.4

Caching decorator with timeout invalidation 1.4 Download Summary

  • Language: Python
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • License: Other Free / Open Source License - Python License
  • Databases: N/A
  • Downloads: 642
  • Released: Jun 7, 2007

Caching decorator with timeout invalidation 1.4 Description

This script is a caching decorator that  collects garbage in a separate thread (for performance).

It allows each cached function to (optionally) set a custom maximum age for entries, and allows individual cache entries to be selectiries, andlidated.

This kind of caching decorator is often useful in web development, when your pages are dynamic enough that you can't cache the whole page, but would still like to cache individual functions that are used to build the page.

The selective invalidation is typically used when some action occurs that makes some of the cache results invalid; for example, if you're displaying message board posts, and a user posts a new message, you would want to invalidate the cache for a function that finds the most recent posts.

Caching decorator with timeout invalidation 1.4 Keywords

Caching decorator with timeout invalidation Bookmark

Hyperlink code:
Hyperlink for Forum code:

Caching decorator with timeout invalidation 1.4 Script Download Notice

Top 4 Download periodically updates information of Caching decorator with timeout invalidation 1.4 script from the developer, but some information may be slightly out-of-date.

Our script download links are directly from our mirrors or publisher's website. Caching decorator with timeout invalidation 1.4 torrent files or shared files from free file sharing and free upload services, including Rapidshare, MegaUpload, YouSendIt, MailBigFile, DropSend, HellShare, HotFile, FileServe, MediaMax, zUpload, MyOtherDrive, SendSpace, DepositFiles, Letitbit, LeapFile, DivShare or MediaFire, are not allowed!

Memoize Decorator with Timeout

This simple decorator is different to other memoize decorators in that it will only cache results for a period of time. It also provides a simple method of cleaning the cache of old entries via the .collect method. This ...
Python

Tail Call Optimization Decorator

This function decorates a function with tail call optimization. It does this by throwing an exception if it is it's own grandparent, and catching such exceptions to fake the tail call optimization. This function fails if the decorated function recurses in a non-tail contexif the de >/ ...
Python

New Tail Recursion Decorator

This tail recursion decorator can eliminate the tail calls for recursive functions. ...
Python

Python symbols

... way to define symbols inside functions, using a decorator. ...
Python

Caching object creation

This script contains many recipes to memoize functions. Using this script you can cache object creation, i.e. __new__ and __init__ methods are called only when n.e. __newt;br >/ ...
Python