ScopedCacheManager API Developer Guide
-
- UpdatedJan 30, 2025
- 2 minutes to read
- Yokohama
- Developer guides
Scoped caches allow customers to store custom data in memory for faster access, and define when it becomes invalidated. This can be useful when working with data takes longer to obtainthat from scratch, such as the results of a query across multiple tables. Use the ScopedCacheManager API to retrieve, set, and flush cache data for scoped applications.
This guide includes instructions for creating a scoped cache and table pair to use with the ScopedCacheManager API.
- Table pair cache: When you need to perform any update operation in the table, all the entries in the cache are also flushed.
- Table row pair cache: When you need to perform any update operation in the table, only the entries that have the same sys_id as the edited record get flushed from the cache. The other entries remain the same.
- Table column pair cache: When you edit a field in the list of selected columns, the entire cache is flushed.
- Table column and row pair cache: When you edit a field in the list of selected columns, the entries that have the same sys_id as the edited record get flushed from the cache.
Creating a scoped cache and table pair
Create a scoped cache and define its cache pair.
Before you begin
Role required: admin
Procedure