Memcached Spring Boot Starter

A convenient dependency descriptor that you can include in your Spring Boot appication to configure a Memcached client.

Usage

memcached.servers=
@SpringBootApplication
@EnableMemcached
class Application {
    .
    .
}

Configuration

If you want to use a specific connection settings, you can define a bean for it :

@SpringBootApplication
@EnableMemcached
class Application {

    @Bean
    public ConnectionFactory memcachedConnection() {
        return new ConnectionFactoryBuilder()
                    .setDaemon(true)
                    .setFailureMode(FailureMode.Cancel)
                .build();
    }

}

Maven Central Coordinates

The Memcached Spring Boot Starter has been published in Maven Central.

Maven

The Maven coordinates are:

<dependency>
  <groupId>com.btmatthews.springboot</groupId>
  <artifactId>memcached-spring-boot-starter</artifactId>
  <version>1.1.0</version>
</dependency>

Gradle

The Gradle coordinates are:

compile('com.btmatthews.springboot:memcached-spring-boot-starter:1.1.0-SNAPSHOT')

License & Source Code

The Memcached Spring Boot Starter is made available under the Apache License and the source code is hosted on GitHub at https://github.com/bmatthews68/memcached-spring-boot-starter.

Contributors