此内容没有您所选择的语言版本。
15.3.2. JdbcMixedStore Configuration (Library Mode)
The following is a sample configuration for the
mixedKeyedJdbcStore:
Procedure 15.9. Configure JdbcMixedStore in Library Mode
The mixedKeyedJdbcStore Element
ThemixedKeyedJdbcStoreelement uses the following parameters to configure the cache store:- The
fetchPersistentStateparameter determines whether the persistent state is fetched when joining a cluster. Set this totrueif using a replication and invalidation in a clustered environment. Additionally, if multiple cache stores are chained, only one cache store can have this property enabled. If a shared cache store is used, the cache does not allow a persistent state transfer despite this property being set totrue. ThefetchPersistentStateparameter isfalseby default. - The
ignoreModificationsparameter determines whether operations that modify the cache (for example put, remove, clear, store, etc.) do not affect the cache store. As a result, the cache store can become out of sync with the cache. - The
purgeOnStartupparameter specifies whether the cache is purged when initially started. - The
key2StringMapperparameter specifies the class name of the Key2StringMapper used to map keys to strings for the database tables.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The binaryKeyedTable and stringKeyedTable Elements
ThebinaryKeyedTableand thestringKeyedTableelement defines the table that stores cache entries. Each uses the following parameters to configure the cache store:- The
dropOnExitparameter specifies whether the database tables are dropped upon shutdown. - The
createOnStartparameter specifies whether the database tables are created by the store on startup. - The
prefixparameter defines the string prepended to name of the target cache when composing the name of the cache bucket table.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The idColumn Element
TheidColumnelement defines the column where the cache key or bucket ID is stored. It uses the following parameters:- Use the
nameparameter to specify the name of the column used. - Use the
typeparameter to specify the type of the column used.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The dataColumn Element
ThedataColumnelement specifies the column where the cache entry or bucket is stored.- Use the
nameparameter to specify the name of the column used. - Use the
typeparameter to specify the type of the column used.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The timestampColumn Element
ThetimestampColumnelement specifies the column where the time stamp of the cache entry or bucket is stored.- Use the
nameparameter to specify the name of the column used. - Use the
typeparameter to specify the type of the column used.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The string-keyed-table Element
Thestring-keyed-tableelement specifies information about the database table used to store string based cache entries.- The
prefixparameter specifies a prefix string for the database table name.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow