title: Spring @Cacheable method with pagination
body: <p>I'm having trouble with @Cacheable using with multi parameters and pagination.</p>
  
  <pre><code>@Cacheable(value = "books", key = "#p0")
  public List&lt;Book&gt; findBooks(Long loggedUserId, String q, Integer firstResult, Integer maxResults) {
  
      ...
  
      return result;
  
  }
  </code></pre>
  
  <p>The problem is when I call the method by the first time, the content is cached with success and the result is like I expect. But when I call by the second time, the result returned is equals to the first time. If I disable the cache or remove the key the results are different.</p>
  
  <p>The use of the key is obligatory because sometimes the cache of a specified user is removed.</p>
  
  <p>Thanks.</p>