Details
-
Enhancement
-
Resolution: Done
-
Major
-
11.0.0.Dev05
-
None
-
DataGrid Sprint #44
Description
ISPN-11676 added the ability to have per-cache client configurations. It should be possible to add new configurations after a RemoteCacheManager has been started.
public void remoteCache(String name, Consumer<RemoteCacheConfigurationBuilder> builderConsumer);
If the `name` doesn't yet exist, a builder will be created and the `Consumer` invoked to allow configuration, as follows:
remoteCache("blah", c -> c.nearCacheMode(NearCacheMode.INVALIDATED).templateName(DefaultTemplate.DIST_SYNC));