Expresso CachingExpresso offers built-in caching ability, designed to be completely configurable for different deployment situations. Caching is handled via a CacheManager object, designed to maximize performance without causing out-of-memory problems by trying to hold too much in cache at once.
Expresso Components Listing |
||||||
IntroductionThe Expresso framework includes a caching system build into the framework.
This caching layer can cache just about anything from dbobjects and configuration
parameters to custom build caches. This caching layer provides fast lookups
for frequent used data and provides an alternative for make frequent database
calls. The actual class that controls the caching is called the CacheManger
and call be found in the expresso tree underunder expresso/core/cache/CacheManager.
|
|
|
|||||||||||||||
|
Automatic CachingObjects commonly accessed, such as configuration values and setup values and security data are automatically cached, but the cache is automatically updated when the corresponding item is changed in the database, so you never have to worry about "stale" data in the cache.. Database Object CachingDatabase objects (usually representing data in a table in a database) can also be cached, and you can control the number of cache entries for each object, using more caching for items more frequently used by your application. The cache manager also performs automatic memory management by keeping a monitor of the amount of memory available and used, and automatically clearing the least-frequently used caches when memory drops below a configurable threshold. Custom CachingYour application can use the CacheManager to cache any custom information required, allowing you to selectively improve performance without sacrificing the accuracy of data. Clustered or Distributed EnvironmentsCaching can even be used in a distributed environment, as the cache manager can be set up to allow synchronization with caches from other servers or contexts, guaranteeing the most current data to your users while still offering the performance benefits of the cache. ConclusionFor technical information about how to use caching, please refer to the Expresso Developers Guide (EDG) or the Javadocs about the ConfigManager. . |
|||||||||||||||||
|
Home | Products | Services | Partners | Customers | About Us | Login | Forums | Contact Us |
Copyright © 2001-2002 Jcorporate Ltd. All rights reserved. Copyright Privacy
Last Modified: 07-Oct-02 9:21:58 PM