[Xotcl] Automatic caching / XOTcl @ Wiki

Kristoffer Lawson setok@fishpool.com
Wed, 21 Feb 2001 04:03:21 +0200 (EET)


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@fishpool.com       |  - - --+------
             |-- Fishpool Creations Ltd - /         |
             +-------- = - - - = ---------      /~setok/