Below is an example of how to create a distributed map cache server for clients to connect to. Note that the identifier in this example is cache-server. If you are using this template to create your own DistributedMapCache server, replace the values in this template with values that are suitable for your system. Possible options for Port, Maximum Cache Entries, Eviction Strategy, SSL Context Service, and Persistence Directory

<?xml version="1.0" encoding="UTF-8" ?>
<services>
    <service>
        <identifier>cache-server</identifier>
        <class>org.apache.nifi.distributed.cache.client.DistributedMapCacheServer</class>
        <property name="Port">4557</property>
        <property name="Maximum Cache Entries">10000</property>
        <property name="Eviction Strategy">Least Recently Used</property>
    </service>
</services>
	
See Also: