|
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Class Summary | |
---|---|
Cache<K,V> | Cache is an abstract class used for code shared by SimpleCache and GeneratingCache. |
CacheDependency | CacheDependency represents a dependency on an entry of the same or another cache. |
Dependency | Base class for all dependencies. |
FileDependency | This class represents a dependency on a given file. |
GeneratingCache<K,V> | A cache that generates an entry if one isn't found. |
SimpleCache<K,V> | A cache that holds key/value pairs. |
StringCache | This class caches mappings from a string to a string. |
This package provides two different caching mechanisms, which are used throughout XTF to speed access to commonly used items. The two types of caches are SimpleCache, to which one simply adds items to cache, and GeneratingCache in which one queries for a requested item and it's generated if it doesn't yet exist.
Both types of caches support the ability to expire entries on a least-recently-used basis, maintaining a limit on the number of entries, maximum age of an entry, or both.
Added to this is a fairly sophisticated dependency mechanism, where one cache entry can depend on one (or many) FileDependencies; if any file changes, the entry is thrown out. Likewise, a cache entry can depend on another cache entry using a CacheDependency.
|
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |