is any valid Where clause. See Where Clause for details. Do not include the Where keyword in the clause. The filter for an existing cache can be removed by specifying an empty string for the filter expression, for example,
FILTER().
Referencing clause allows multiple related tables to be cached as a single entity. This example creates a cache on the remote table account. The cache is populated with all accounts that have had activity in 2010. Additionally, caches are created for the following remote tables:
opportunity,
contact, and
opportunitylineitem. These caches are populated with the opportunities and contacts that are associated with the accounts stored in the accounts cache and the opportunity line items associated with the opportunities stored in the opportunity cache.
This example caches all rows of the account table with a refresh interval of 12 hours, checks whether data of the cached table needs to be refreshed on the first use, persists the data beyond the life of the connection, and stores the data in memory while the connection is active.
This example caches all active accounts in the account table with a refresh interval of 1 day, checks whether data of the cached table needs to be refreshed when the connection is established, and discards the data when the connection is closed.