[id='hotrod_percache']
= Creating Per-Cache Configurations
In addition to creating caches on first access, you can remotely configure certain aspects of individual caches such as:

* Force return values
* Near-caching
* Transaction modes

.Procedure

* Enable _force return values_ for a cache named `a-cache` as follows:

[source,java]
----
import org.infinispan.client.hotrod.configuration.ConfigurationBuilder;
...

ConfigurationBuilder builder = new ConfigurationBuilder();
builder
  .remoteCache("a-cache")
    .forceReturnValues(true);
----

* Use wildcard globbing in the remote cache name to enable force return values
for all caches that start with the string `somecaches`:

[source,java]
----
import org.infinispan.client.hotrod.configuration.ConfigurationBuilder;
...

ConfigurationBuilder builder = new ConfigurationBuilder();
builder
  .remoteCache("somecaches*")
    .forceReturnValues(true);
----

[NOTE]
====
When using declarative configuration and your cache names contain the `.`
character, you must enclose the cache name in square brackets, for example
`infinispan.client.hotrod.cache.[example.MyCache].template=...`
====
