Skip to content

This is a demo project showing the usage of Memcached Spring Boot cache library in a Spring Boot application.

Notifications You must be signed in to change notification settings

sixhours-team/spring-boot-memcached-demo-kotlin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot Memcached Demo

This is an example project showing the usage of Memcached Spring Boot cache library in a Spring Boot application. You will have to have Docker installed in order to run this demo.

Testing

To run the application tests execute this command:

./gradlew test

Running with Docker

Build a Docker image for the demo application by running:

./gradlew clean buildDocker

This will create the spring-boot-memcached-demo-kotlin Docker image in your machine's local Docker image registry. To start a memcached server and the demo application, run:

docker-compose -f src/main/docker/app.yml up -d

You should now be able to access REST endpoints e.g.

http://localhost:8080/books (not cached)

http://localhost:8080/books/Kotlin (cached)

To stop and remove the containers, run:

docker-compose -f src/main/docker/app.yml down

About

This is a demo project showing the usage of Memcached Spring Boot cache library in a Spring Boot application.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages