Wednesday 24 August 2016

Spymemcached tutorial: Java API for Memcached

In this tutorial series, I am going to explain how to communicate to Memcached server using spymemcached api.


I am going to use following Java apis for this tutorial.

<dependencies>
 <dependency>
  <groupId>net.spy</groupId>
  <artifactId>spymemcached</artifactId>
  <version>2.12.1</version>
 </dependency>

 <dependency>
  <groupId>org.apache.logging.log4j</groupId>
  <artifactId>log4j-api</artifactId>
  <version>2.6.2</version>
 </dependency>

 <dependency>
  <groupId>org.apache.logging.log4j</groupId>
  <artifactId>log4j-core</artifactId>
  <version>2.6.2</version>
 </dependency>
</dependencies>

set data
get data
Add data
replace data
Append data
Prepend data
gets: Get CAS token associated with the data
cas function
delete key from Memcached
Increment and Decrement the value associated with key
Get server statistics
Setting time out for Memcached request

Previous                                                 Next                                                 Home

No comments:

Post a Comment