title: How to Configure Spring Boot with Memcached
body: <p>I am new to Memcached. I need to configure my spring boot application with Memcached.</p>
  
  <p>I researched a lot on the topic but I could not find a documentation for the same.
  By default Spring boot uses Concurrent HashMap for caching but how do I configure Memcached.</p>
  
  <p>I got this GitHub URL but I am not sure if this is the correct way and if so how do I use the same.</p>
  
  <p><a href="https://github.com/sixhours-team/memcached-spring-boot" rel="noreferrer">https://github.com/sixhours-team/memcached-spring-boot</a></p>
  
  <p><a href="https://www.javacodegeeks.com/2013/06/simple-spring-memcached-spring-caching-abstraction-and-memcached.html" rel="noreferrer">https://www.javacodegeeks.com/2013/06/simple-spring-memcached-spring-caching-abstraction-and-memcached.html</a></p>
  
  <p>Update</p>
  
  <p>I have used this in my project now <a href="https://github.com/bmatthews68/memcached-spring-boot-starter" rel="noreferrer">https://github.com/bmatthews68/memcached-spring-boot-starter</a>.</p>
  
  <p>Like this</p>
  
  <pre><code>@Override @Cacheable(value = "defaultCache")
      public String customMethof() throws InterruptedException {
          return "Testing";
      }
  </code></pre>
  
  <p>but when i do a telnet of get defaultCache i get nothing  Please help </p>