Memcached Java client with minimal dependencies

I would like to use memcached in my java web application and after some digging, I found that spymemcached and xmemcached are considered the best in the java community.
After a closer look at these libraries, I found that they use tons of additional libraries (spring, jboss.netty, hibernate, ...)
and that makes sense to me because my Java application is based on some 3 (openfire), which uses a pier as a servlet container and tends to be simple and fast.

Is there any memcached client implementation that doesn’t need so many dependencies? (Or maybe there is a way to use spymemcahed without them)

+4
source share
2 answers

Spymemcached had a lot of dependencies because we added a bunch of things to support Membase / Couchbase. In the 2.8 release of Spymemcached, we pulled out all of the Membase / Couchbase content and transferred it to a new project called the Couchbase-Client. In 2.8, the only dependencies are log4j and spring beans. With some minor changes to the Spymemcached source, you can also easily remove the spring beans dependency.

+2
source

You can also look at gwhalin memcached java client. It is very easy to start using it because it does not use external dependencies.

+1
source

Source: https://habr.com/ru/post/1392684/


All Articles