Memcached Spring Boot Starter

A Spring Boot Starter to configure a Memcached client

License

License

Categories

Categories

Spring Boot Container Microservices
GroupId

GroupId

com.btmatthews.springboot
ArtifactId

ArtifactId

memcached-spring-boot-starter
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

Memcached Spring Boot Starter
A Spring Boot Starter to configure a Memcached client
Project URL

Project URL

https://github.com/bmatthews68/memcached-spring-boot-starter
Source Code Management

Source Code Management

https://github.com/bmatthews68/memcached-spring-boot-starter

Download memcached-spring-boot-starter

How to add to project

<!-- https://jarcasting.com/artifacts/com.btmatthews.springboot/memcached-spring-boot-starter/ -->
<dependency>
    <groupId>com.btmatthews.springboot</groupId>
    <artifactId>memcached-spring-boot-starter</artifactId>
    <version>1.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.btmatthews.springboot/memcached-spring-boot-starter/
implementation 'com.btmatthews.springboot:memcached-spring-boot-starter:1.1.0'
// https://jarcasting.com/artifacts/com.btmatthews.springboot/memcached-spring-boot-starter/
implementation ("com.btmatthews.springboot:memcached-spring-boot-starter:1.1.0")
'com.btmatthews.springboot:memcached-spring-boot-starter:jar:1.1.0'
<dependency org="com.btmatthews.springboot" name="memcached-spring-boot-starter" rev="1.1.0">
  <artifact name="memcached-spring-boot-starter" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.btmatthews.springboot', module='memcached-spring-boot-starter', version='1.1.0')
)
libraryDependencies += "com.btmatthews.springboot" % "memcached-spring-boot-starter" % "1.1.0"
[com.btmatthews.springboot/memcached-spring-boot-starter "1.1.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.springframework.boot : spring-boot jar 1.5.6.RELEASE
net.spy : spymemcached jar 2.12.0

Project Modules

There are no modules declared in this project.

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

Versions

Version
1.1.0
1.0.0