Identity Data Store Documentation Index
Configuration Reference Home

FIFO Entry Cache

Note: this component has a complexity level of "expert", which means that objects of this type are not expected to be created or altered. Please contact UnboundID support for assistance if you believe that you have a need to create or modify this type of object.

The FIFO Entry Cache provides a simple entry cache implementation that uses a first-in/first-out approach to holding entries so that the entries which have been in the cache the longest will be the first entries to be purged if the need arises.

Note that in most deployments, no entry cache is needed as excellent performance can be achieved without the entry cache and using only the database caching mechanism. It is generally recommended that the entry cache remain disabled in most cases, since that makes configuration and sizing simpler. The entry cache should generally only be used for special types of entries (e.g., static groups with a large number of members) in which it the process of decoding the associated entry from the database is excessively expensive and causes a notable performance degradation. In such cases, then the include-filter and/or exclude-filter properties should be used to ensure that only the most problematic entries are held in the entry cache.

Cache sizing is based on the percentage of free memory within the JVM, such that if enough memory is free, then adding an entry to the cache will not require purging, but if more than a specified percentage of the available memory within the JVM is already consumed, then one or more entries will need to be removed in order to make room for a new entry.

It is also possible to configure a maximum number of entries for the cache. If this is specified, then the number of entries will not be allowed to exceed this value, but it may not be possible to hold this many entries if the available memory fills up first.

Other configurable parameters for this cache include the maximum length of time to block while waiting to acquire a lock, and a set of filters that may be used to define criteria for determining which entries are stored in the cache. If a filter list is provided, then only entries matching at least one of the given filters will be stored in the cache.

Parent Component
Properties
dsconfig Usage

Parent Component

The FIFO Entry Cache component inherits from the Entry Cache

Properties

The properties supported by this managed object are as follows:


Basic Properties: Advanced Properties:
↓ description ↓ cache-unindexed-search-results
↓ enabled ↓ lock-timeout
↓ cache-level
↓ max-memory-percent
↓ max-entries
↓ include-filter
↓ exclude-filter
↓ min-cache-entry-value-count
↓ min-cache-entry-attribute

Basic Properties

description

Description
A description for this Entry Cache
Default Value
None
Allowed Values
A string
Multi-Valued
No
Required
No
Admin Action Required
None. Modification requires no further action

enabled

Description
Indicates whether the Entry Cache is enabled.
Default Value
None
Allowed Values
true
false
Multi-Valued
No
Required
Yes
Admin Action Required
None. Modification requires no further action

cache-level

Description
Specifies the cache level in the cache order if more than one instance of the cache is configured.
Default Value
None
Allowed Values
An integer value. Lower limit is 1.
Multi-Valued
No
Required
Yes
Admin Action Required
None. Modification requires no further action

max-memory-percent

Description
Specifies the maximum amount of memory, as a percentage of the total maximum JVM heap size, for new entries to be added to the heap. If the amount of memory in use within the JVM is greater than this amount, then an attempt to put a new entry in the cache will be ignored and will cause the oldest entry to be purged.
Default Value
75
Allowed Values
An integer value. Lower limit is 1. Upper limit is 90 .
Multi-Valued
No
Required
No
Admin Action Required
None. Modification requires no further action

max-entries

Description
Specifies the maximum number of entries that will be allowed in the cache. Once the cache reaches this size, then adding new entries will cause existing entries to be purged, starting with the oldest.
Default Value
10000
Allowed Values
An integer value. Lower limit is 0.
Multi-Valued
No
Required
No
Admin Action Required
None. Modification requires no further action

include-filter

Description
The set of filters that define the entries that should be included in the cache.
Default Value
None
Allowed Values
A string
Multi-Valued
Yes
Required
No
Admin Action Required
None. Modification requires no further action

exclude-filter

Description
The set of filters that define the entries that should be excluded from the cache.
Default Value
None
Allowed Values
A string
Multi-Valued
Yes
Required
No
Admin Action Required
None. Modification requires no further action

min-cache-entry-value-count

Description
Specifies the minimum number of attribute values (optionally across a specified subset of attributes as defined in the min-cache-entry-attributes property) for entries that should be held in the cache. Entries with fewer than this number of attribute values will be excluded from the cache. A value of zero indicates that there is no minimum value count for entries to cache.
Default Value
0
Allowed Values
An integer value. Lower limit is 0.
Multi-Valued
No
Required
No
Admin Action Required
The FIFO Entry Cache must be disabled and re-enabled for changes to this setting to take effect. This modification requires that you disable and then re-enable this component for the change to take effect

min-cache-entry-attribute

Description
Specifies the names of the attribute types for which the min-cache-entry-value-count property should apply. If no attribute types are specified, then all user attributes will be examined.
Default Value
None
Allowed Values
The name or OID of an attribute type defined in the server schema.
Multi-Valued
Yes
Required
No
Admin Action Required
The FIFO Entry Cache must be disabled and re-enabled for changes to this setting to take effect. This modification requires that you disable and then re-enable this component for the change to take effect


Advanced Properties

cache-unindexed-search-results (Advanced Property)

Description
Indicates whether the entry cache should be updated with entries that have been returned to the client during the course of processing an unindexed search.
Default Value
false
Allowed Values
true
false
Multi-Valued
No
Required
No
Admin Action Required
None. Modification requires no further action

lock-timeout (Advanced Property)

Description
Specifies the length of time to wait while attempting to acquire a read or write lock.
Default Value
2000.0ms
Allowed Values
A duration. A value of "-1" or "unlimited" for no limit. Lower limit is 0 milliseconds.
Multi-Valued
No
Required
No
Admin Action Required
None. Modification requires no further action


dsconfig Usage

To list the configured Entry Caches:

dsconfig list-entry-caches
     [--property {propertyName}] ...

To view the configuration for an existing Entry Cache:

dsconfig get-entry-cache-prop
     --cache-name {name}
     [--tab-delimited]
     [--script-friendly]
     [--property {propertyName}] ...

To update the configuration for an existing Entry Cache:

dsconfig set-entry-cache-prop
     --cache-name {name}
     (--set|--add|--remove) {propertyName}:{propertyValue}
     [(--set|--add|--remove) {propertyName}:{propertyValue}] ...

To create a new FIFO Entry Cache:

dsconfig create-entry-cache
     --cache-name {name}
     --type fifo
     --set enabled:{propertyValue}
     --set cache-level:{propertyValue}
     [--set {propertyName}:{propertyValue}] ...

To delete an existing Entry Cache:

dsconfig delete-entry-cache
     --cache-name {name}