In this recipe, we will be using Java to talk to our memcached server. Java is a very powerful programming language and is famous for enterprise-class applications.
There are, of course, a variety of memcached clients written for Java. We have chosen the most powerful client that is not hard to use, that is
spymemcached java library has artifacts published on the maven central repository. If you are using maven you will need to add this to your
pom.xml file (highlighted):
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> ...