title: How to Iterate on a cache entries
body: <p>I am using Spring3.1 in standalone Env.
  I am caching my entry using @Cachable annotation.</p>
  
  <p>Sometimes I need to iterate on the caching list in order to get <strong>specific value</strong>(not key).</p>
  
  <p>So I managed to retrieve the cached list but how could I iterate on it's elements.</p>
  
  <pre><code>private ClientDTO getClientDTOByClientId(Integer clientId)
  {
  
      Cache clientCache = null;
      try
      {
          clientCache = ehCacheCacheManager.getCache("client");
  
            //need here to iterate on clientCache. how?
  
  
      }
      catch (Exception e)
      {
          log.error("Couldnt retrieve client from cache. clientId=" + clientId);
      }
      return clientDTO;
  }
  </code></pre>
  
  <p>I using  ehcache mechanism.</p>
  
  <pre><code>&lt;bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheCacheManager"
          p:cache-manager-ref="ehcache" /&gt;
  
      &lt;bean id="ehcache"
          class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"
          p:config-location="classpath:ehcache.xml" /&gt;
  </code></pre>
  
  <p>thanks,
  ray.</p>