W3C Jigsaw


All resources All frames

CacheProp

This resource class provides editable access to the cache configuration. It's use is to allow easy customization of Jigsaw when used as a proxy or as a mirror.


Inherits

The CacheProp class inerits from the following classes:


Attributes description

The CacheProp defines the following attributes:


org.w3c.www.protocol.http.cache.size
semantics
The size of the cache, given as the number of bytes that the cache is allowed to use on the disk.
type
This attribute is an editable IntegerAttribute
default value
This attribute defaults to 5000000.


org.w3c.www.protocol.http.cache.debug
semantics
Turn the cache filter debug mode on or off.
type
This attribute is an editable BooleanAttribute
default value
This attribute defaults to false.


org.w3c.www.protocol.http.cache.shared
semantics
Is this cache shared among multiple users ?
type
This attribute is an editable BooleanAttribute
default value
This attribute defaults to true.


org.w3c.www.protocol.http.cache.connected
semantics
Tell the cache wether it is allowed to use the net to answer to any request. This has the same effect as if all requests served by the cache had the only-if-cache cache control directive set.
type
This attribute is an editable BooleanAttribute
default value
This attribute defaults to true.


org.w3c.www.protocol.http.cache.garbageCollectionEnabled
semantics
Enables or disables the garbage collector of the cache. This is most usefull when you are planning to use the proxy in disconnected mode: turn off this flag while filling in the cache, then disconnect it by using the org.w3c.www.protocol.http.cache.connected property.
type
This attribute is an editable BooleanAttribute
default value
This attribute defaults to true.


org.w3c.www.protocol.http.cache.fileSizeRatio
semantics
Indicates the ratio - relative to the cache size - of the number of bytes a single entry in the cache is allowed to occupy. For example, if set to 0.1 and the cache size is set to 5000000, then any document whose length is greater then 500000 will not be cached. This ratio is given as a floating point value between 0 and 1.
type
This attribute is an editable DoubleAttribute
default value
This attribute defaults to 0.1.


Jigsaw Team
$Id: org.w3c.jigsaw.proxy.CacheProp.html,v 1.2 1998/03/27 08:20:43 bmahe Exp $