title: Coherence distributed cache expiry per Namedcache
body: <p>How can we set eviction policy/expiry per cache entry for any specific cache(NamedCache). For example, I may have two cache's configured, however want to set eviction policy based on time only for one of the cache.</p>
  
  <p>As per the below config file, I require to set eviction only for "TEST2CACHE" cache for say, expiry after 1 day. How to do that? </p>
  
  <p>Any pointers would be helpful. Thanks.</p>
  
  <p>Here, is a sample of my coherence config xml file-
  </p>
  
  <pre><code>    &lt;cache-mapping&gt;
          &lt;cache-name&gt;TEST1CACHE&lt;/cache-name&gt;
          &lt;scheme-name&gt;MyDistributedCache&lt;/scheme-name&gt;
      &lt;/cache-mapping&gt;
  
      &lt;!-- Application Configuration Cache --&gt;
      &lt;cache-mapping&gt;
          &lt;cache-name&gt;TEST2CACHE&lt;/cache-name&gt;
          &lt;scheme-name&gt;MyDistributedCache&lt;/scheme-name&gt;
      &lt;/cache-mapping&gt;
  
  &lt;/caching-scheme-mapping&gt;
  
  &lt;caching-schemes&gt;
      &lt;distributed-scheme&gt;
          &lt;scheme-name&gt;MyDistributedCache&lt;/scheme-name&gt;
          &lt;service-name&gt;MyDistributedCache&lt;/service-name&gt;
          &lt;lease-granularity&gt;member&lt;/lease-granularity&gt;
          &lt;backing-map-scheme&gt;
              &lt;read-write-backing-map-scheme&gt;
                  &lt;internal-cache-scheme&gt;
                      &lt;local-scheme&gt;
                          &lt;unit-calculator&gt;BINARY&lt;/unit-calculator&gt;
                      &lt;/local-scheme&gt;
                  &lt;/internal-cache-scheme&gt;
                  &lt;cachestore-scheme&gt;
                      &lt;class-scheme&gt;
                          &lt;class-name&gt;spring-bean:myCacheStore&lt;/class-name&gt;
                          &lt;init-params&gt;
                              &lt;init-param&gt;
                                  &lt;param-name&gt;setEntityName&lt;/param-name&gt;
                                  &lt;param-value&gt;{cache-name}&lt;/param-value&gt;
                              &lt;/init-param&gt;
                          &lt;/init-params&gt;
                      &lt;/class-scheme&gt;
                  &lt;/cachestore-scheme&gt;
              &lt;/read-write-backing-map-scheme&gt;
          &lt;/backing-map-scheme&gt;
          &lt;autostart&gt;true&lt;/autostart&gt;
      &lt;/distributed-scheme&gt;
  &lt;/caching-schemes&gt;
  </code></pre>