[Xotcl] Automatic caching / XOTcl @ Wiki

Kristoffer Lawson setok at fishpool.com
Wed Feb 21 03:03:21 CET 2001


I built a small class called Cacheable that can be joined with other
classes and objects. With it you can specify certain methods from which
the returned result should be cached (and for how long). You can also
specify invalidation methods which cause the object's cache to be
empties. All this happens transparently from the methods' point of view.

I put the code up at the Tcler's Wiki:

http://mini.net/cgi-bin/wikit/1298.html

If anyone else has some neat examples, it might be a good idea to add them
to the XOTcl page I put up there:

http://mini.net/cgi-bin/wikit/1297.html

         -     ---------- = = ---------//--+
         |    /     Kristoffer Lawson      |  www.fishpool.fi|.com
         +-> |    setok at fishpool.com       |  - - --+------
             |-- Fishpool Creations Ltd - /         |
             +-------- = - - - = ---------      /~setok/





More information about the Xotcl mailing list