A public API is available for the transaction SQL query cache. The class, curam.util.transaction.SQLQueryCacheAdmin, provides functions that allow developers to manipulate the transaction SQL query cache at runtime. These methods include the following:
- enableSQLQueryCache(): this function enables the SQL query cache for the current transaction.
- disableSQLQueryCache(): this function disables the SQL query cache for the current transaction.
- clearSQLQueryCacheForTable(String tableName): this function flushes all entries from the transaction SQL cache that contain the specified table name for the current transaction.
- clearSQLQueryCache(): this function flushes all of the entries from the transaction SQL cache for the current transaction.