title: Cannot find cache named '' for CacheableOperation[] caches
body: <p>My error is :</p>
  
  <pre><code>Exception in thread "main" java.lang.IllegalArgumentException: Cannot find cache named 'getActionsBycasId' for CacheableOperation[public java.util.List com.codinko.database.DataBaseConnection.getActionsByCasId(int)] caches=[getActionsBycasId] | key='' | keyGenerator='' | cacheManager='' | cacheResolver='' | condition='' | unless=''
      at org.springframework.cache.interceptor.AbstractCacheResolver.resolveCaches(AbstractCacheResolver.java:81)
      at org.springframework.cache.interceptor.CacheAspectSupport.getCaches(CacheAspectSupport.java:214)
      at org.springframework.cache.interceptor.CacheAspectSupport$CacheOperationContext.&lt;init&gt;(CacheAspectSupport.java:553)
      at org.springframework.cache.interceptor.CacheAspectSupport.getOperationContext(CacheAspectSupport.java:227)
      at org.springframework.cache.interceptor.CacheAspectSupport$CacheOperationContexts.&lt;init&gt;(CacheAspectSupport.java:498)
      at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:299)
      at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:653)
      at com.codinko.database.DataBaseConnection$$EnhancerBySpringCGLIB$$21a0d8a.getActionsByCasId(&lt;generated&gt;)
      at com.codinko.caching.EmployeeDAO.getActionBycasId(EmployeeDAO.java:47)
      at com.codinko.caching.EmployeeDAO$$FastClassBySpringCGLIB$$191aa49b.invoke(&lt;generated&gt;)
      at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
      at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:649)
      at com.codinko.caching.EmployeeDAO$$EnhancerBySpringCGLIB$$3399d753.getActionBycasId(&lt;generated&gt;)
      at com.codinko.caching.Main.main(Main.java:22)    
  </code></pre>
  
  <p>My function is :</p>
  
  <pre><code>@Cacheable("getActionsBycasId")
  public List&lt;SMSAction&gt; getActionsByCasId(int casId){
      System.out.println("Inside getActionsByCasId");
      //My logic
      return list;
  }    
  </code></pre>
  
  <p>when i add below on ehcache.xml then above error not comes but can't know why this error come .</p>
  
  <pre><code>&lt;cache name="getActionsBycasId" maxElementsInMemory="50" eternal="false"
      overflowToDisk="false" memoryStoreEvictionPolicy="LFU" /&gt;    
  </code></pre>
  
  <p>Is this above configuration required in ehcache.xml file even though i used <code>annotation</code> ????</p>