Skip Headers

# Cache Refresh API

Previous

Next

You configure cache refresh using the `Descriptor` API summarized in Example: Cache Refresh Descriptor API.

Cache Refresh Descriptor API

    alwaysRefreshCache()
    alwaysRefreshCacheOnRemote()
    disableCacheHits()
    disableCacheHitsOnRemote()
    onlyRefreshCacheIfNewerVersion()

You can also configure cache refresh using the following API calls:

- `Session`: `refreshObject` method

- `DatabaseSession` and `UnitOfWork: refreshAndLockObject` methods

- `ObjectLevelReadQuery: refreshIdentityMapResult` and `refreshRemoteIdentityMapResult` methods

For more information, see "Configuring Cache Refreshing".