Skip Headers

# Using Java

Previous

Next

Configure cache refresh options using the following `ClassDescriptor` methods:

- `setShouldAlwaysRefreshCache`

- `setShouldAlwaysRefreshCacheOnRemote`

- `setShouldDisableCacheHits`

- `setShouldDisableCacheHitsOnRemote`

- `setShouldOnlyRefreshCacheIfNewerVersion`

Use these methods in a descriptor amendment method (see "Configuring Amendment Methods") as Example: Configuring Remote Refreshing illustrates.

Configuring Remote Refreshing

    public void addToDescriptor(ClassDescriptor descriptor) {
        descriptor.setShouldRefreshCacheOnRemote(true);
        descriptor.setShouldDisableCacheHitsOnRemote(true);
    }