title: Register Caffeine Cache in Spring Actuator (CacheManager)
body: <p>We're using Spring Boot 2 and Spring Actuator. When creating a cache like the following:</p>
  
  <pre class="lang-java prettyprint-override"><code>@Bean
  public CaffeineCache someCache() {
      return new CaffeineCache("my-cache",
              Caffeine.newBuilder()
                      .maximumSize(1000)
                      .expireAfterWrite(10, TimeUnit.SECONDS)
                      .build());
  }
  </code></pre>
  
  <p>it is registered into Spring Actuator and can be accessed and handle via endpoints:</p>
  
  <pre><code>❯ http GET localhost:8080/actuator/caches
  
  {
      "cacheManagers": {
          "cacheManager": {
              "caches": {
                  "my-cache": {
                      "target": "com.github.benmanes.caffeine.cache.BoundedLocalCache$BoundedLocalManualCache"
                  }
              }
          }
      }
  }
  </code></pre>
  
  <p>However, this is valid when using the annotation <code>@Cacheable</code> - but I would like to create a cache and use it as a map. </p>
  
  <p>Therefore, I can create:</p>
  
  <pre class="lang-java prettyprint-override"><code>    @Bean
      public com.github.benmanes.caffeine.cache.Cache&lt;String, MyObject&gt; customCache(QueryServiceProperties config) {
          return Caffeine.newBuilder()
                  .maximumSize(10)
                  .expireAfterAccess(10, TimeUnit.SECONDS)
                  .build();
      }
  </code></pre>
  
  <p>And it works but it cannot be discovered by <em>Spring Actuator</em>. Is there any way to register this kind of cache?</p>