I am currently using memcached with my java app, and overall it\'s working great.
The features of memcached that are most important to me are:
You could use Tarantool (http://tarantool.org). It is an in-memory database with persistence, master-master replication and scriptable key expiration rules - https://github.com/tarantool/expirationd