-
The MCacheMaxObjectCount directive sets the maximum
- number of objects to be cached. If a new object needs to be inserted in the cache
- and the maximum number of objects has been reached, an object will be removed
- to allow the new object to be cached. The object to be removed is selected using
- the algorithm specified by MCacheRemovalAlgorithm.
+
The MCacheMaxObjectCount directive sets the
+ maximum number of objects to be cached. The value is used to create the
+ open hash table. If a new object needs to be inserted in the cache and
+ the maximum number of objects has been reached, an object will be
+ removed to allow the new object to be cached. The object to be removed
+ is selected using the algorithm specified by MCacheRemovalAlgorithm.
-
Note:
- The value of MCacheMaxObjectCount is used to create
- the open hash table.
-
-
-
- MCacheMaxObjectCount 13001
+ Example
+ MCacheMaxObjectCount 13001

-
The MCacheMaxObjectSize directive sets the maximum
- allowable size, in bytes, of a document for it to be considered cacheable.
-
-
Note:
- The value of MCacheMaxObjectSize must be greater
- than the value specified by the MCacheMinObjectSize
- directive.
-
+
The MCacheMaxObjectSize directive sets the
+ maximum allowable size, in bytes, of a document for it to be considered
+ cacheable.
-
- MCacheMaxObjectSize 6400000
+ Example
+ MCacheMaxObjectSize 6400000
+
+ Note
+
The value of MCacheMaxObjectSize must be
+ greater than the value specified by the MCacheMinObjectSize directive.
+

-
The MCacheMinObjectSize directive sets the minimum
- size in bytes of a document for it to be considered cacheable.
+
The MCacheMinObjectSize directive sets the
+ minimum size in bytes of a document for it to be considered
+ cacheable.
-
- MCacheMinObjectSize 10000
+ Example
+ MCacheMinObjectSize 10000

The MCacheRemovalAlgorithm directive specifies
the algorithm used to select documents for removal from the cache.
- Two choices are available:
- LRU (Least Recently Used): LRU removes the
- documents that have not been accessed for the longest time.
- GDSF (GreadyDual-Size): GDSF assigns a priority
- to cached documents based on the cost of a cache miss and the size of
- the document. Documents with the lowest priority are removed first.
+ Two choices are available:
+
+
+ LRU (Least Recently Used)
+ LRU removes the documents that have not been accessed
+ for the longest time.
+
+ GDSF (GreadyDual-Size)
+ GDSF assigns a priority to cached documents based
+ on the cost of a cache miss and the size of the document. Documents
+ with the lowest priority are removed first.
+
-
- MCacheRemovalAlgorithm GDSF
- MCacheRemovalAlgorithm LRU
+ Example
+ MCacheRemovalAlgorithm GDSF
+ MCacheRemovalAlgorithm LRU

-
The MCacheSize directive sets the maximum amount of memory
- to be used by the cache, in KBytes (1024-byte units). If a new object needs to be
- inserted in the cache and the size of the object is greater than the
- remaining memory, objects will be removed until the new object can be cached.
- The object to be removed is selected using the algorithm specified by
- MCacheRemovalAlgorithm.
+
The MCacheSize directive sets the maximum
+ amount of memory to be used by the cache, in KBytes (1024-byte units).
+ If a new object needs to be inserted in the cache and the size of the
+ object is greater than the remaining memory, objects will be removed
+ until the new object can be cached. The object to be removed is
+ selected using the algorithm specified by MCacheRemovalAlgorithm.
-
Note:
- The MCacheSize value must be greater than the value
- specified by the MCacheMaxObjectSize directive.
-
-
-
- MCacheSize 700000
+ Example
+ MCacheSize 700000
+
+ Note
+
The MCacheSize value must be greater than
+ the value specified by the MCacheMaxObjectSize directive.
+