Helma logo
helma.org » Home > Stories > HopObject.cache

HopObject.cache

Object providing space for arbitrary run-time data (object cache).

Syntax
HopObject.cache

Each HopObject contains a cache object to store temporary properties (strings, numbers, objects etc.).

These properties can be accessed in any thread until the application is restarted or the HopObject is invalidated, either manually using invalidate function or whenever Helma is updating the HopObject's data from a remote database.

There is no way to make the cache object persistent.

Example
var obj = root.get(0);
obj.cache.message = "This is a temporary message."


... comment


Page last modified on 2002-07-16 13:15 by tobi