title: Evict Ehcache elements programmatically, using Spring
body: <p>I'm new to Spring and Caching, and I would like your help.</p>
  
  <p>I'm caching Link object by using Spring annotation</p>
  
  <pre><code>@CachePut(value=CACHE_NAME, key="{#root.targetClass, #link.getId()}")
  public Link update(Link link) {...}
  </code></pre>
  
  <p>Now, I want to programmatically clear those links that have been cached, so I tried this.</p>
  
  <pre><code>Ehcache cache = cacheManager.getEhcache(CACHE_NAME);
  for(Link link : links) {
     List key = Arrays.asList(new String[] {this.getClass().toString(), link.getId()});
     cache.remove(key.toString());
  }
  </code></pre>
  
  <p>So, I've noticed that is not working.
  Do you know what SpEL's list ouput is? What key value need I expect in cache?</p>
  
  <p>Thanks in advance,
  TD</p>