Questions tagged [spymemcached]

Spymemcached is a single-threaded, asynchronous memcached client written in java.

182 questions
14
votes
1 answer

Hibernate EHCache vs MemCache

I would like to use caching in my web application which will be scalable and distributed as well. I have used EHCache and MemCache both in small-small web application separately. Have googled and got mixed review about both, hence would like to get…
Manoj Kathiriya
  • 3,366
  • 5
  • 19
  • 19
13
votes
2 answers

java.lang.ClassNotFoundException: net.spy.memcached.compat.log.SLF4JLogger

I added to Java opts -Dnet.spy.log.LoggerImpl=net.spy.memcached.compat.log.SLF4JLogger to set spymemcached to use slf4j as the logger. But I am getting the following WARNING in tomcat6 logs and I am puzzled over the error …
user782220
  • 10,677
  • 21
  • 72
  • 135
11
votes
3 answers

How to connection pool memcached in Java (spymemcached)

The API I'm using, spymemcached, basically gives MemcachedClient memc = new MemCachedClient(new InetSocketAddress("host", port)); It doesn't really give me a connect() or isConnected() function. The API offers a DefaultConnectionFactory but at…
djechlin
  • 59,258
  • 35
  • 162
  • 290
10
votes
1 answer

memcached client: opening, closing and reusing connections

I have been testing spymemcached and xmemcached clients. I have been trying to find answers in the projects documentation but it is very poor. My questions are regarding opening, closing and reusing the connections. I found this in one document: A…
Oscar
  • 1,357
  • 2
  • 17
  • 24
8
votes
1 answer

Spymemcached and Connection Failures

I though Spymemcached does attempt to reestablish connection to the server when this connection get lost. But I am seeing something different; wondering what I misunderstand or what I do wrong. Here is some sample code: MemcachedClient c=new…
Klaus
  • 2,328
  • 5
  • 41
  • 62
8
votes
3 answers

Items set with spymemcached cannot be fetched with php memcached

I am using spymemcached. I set a couple of items. Then I run a php script, however then I cannot get all those items using php memcached. PHP-Memcached can only partially retrieve those items. I cannot change php's hashing algorithm or distribution…
Shades88
  • 7,934
  • 22
  • 88
  • 130
8
votes
1 answer

How to handle recovery memcached nodes when using spymemcached & HashAlgorithm.KETAMA_HASH

I am using spymemcached & HashAlgorithm.KETAMA_HASH to connect to a pool of memcached of 5 nodes. My understanding is when we use a consistent hashing algorithm like, when a node is down, we don't need to worry as the key will be re-distributed…
Howard
  • 19,215
  • 35
  • 112
  • 184
7
votes
1 answer

Setting Up Amazon ElastiCache w/ spymemcached in Java

I haven't been able to find a good tutorial on Memcached on Amazon Cloudand I'm very new to this whole caching thing. I am trying to use memcached through Amazon's ElastiCache service and with a spymemcached client to actually make the memcached…
Craig
  • 1,295
  • 3
  • 16
  • 29
7
votes
3 answers

Amazon ElasticCache Autodiscovery - Client is not initialized

I am trying to test Amazon's new Memcached client with AutoDiscovery. I have one memcached node which I am able to connect to using XMemcached 1.3.5 as well as a standard SpyMemcached library. I am following the instructions here:…
Moemars
  • 4,692
  • 3
  • 27
  • 30
7
votes
1 answer

HOWTO Resolve warning messages of "restributing to another node" when using Spymemcached client library for memcached server

I am using spymemcached client library v2.8.0 provided by couchbase folks. The memcached server installed is version 1.4.13. The configuration for memcached is pretty basic > -m 64 -p 11211 -u memcache -l 127.0.0.1. I am able to proper get, set,…
Chantz
  • 5,883
  • 10
  • 56
  • 79
6
votes
1 answer

How to access memcached asynchronously in netty

I am writing a server in netty, in which I need to make a call to memcached. I am using spymemcached and can easily do the synchronous memcached call. I would like this memcached call to be async. Is that possible? The examples provided with netty…
Vivek Pandey
  • 3,455
  • 1
  • 19
  • 25
6
votes
2 answers

Stale data handling with memcached/consistent hashing

Assume I have two memcached nodes (node A, B) at the beginning, and when I add a new node C, a portion of the keys are remapped and thanks to consistent hashing only some of them. Let's assume a value with key "foo" originally at server A is now…
Ryan
  • 10,041
  • 27
  • 91
  • 156
5
votes
1 answer

How to stop tomcat from making failed attempts to connect to local memcached servers?

I have deployed my web app inside a tomcat container but due to a possible connection leak , the web app is constantly making failed attempts to connect to the local memcached server listening at port 11211 and 11212. I am using the spy-memcached…
A Null Pointer
  • 2,261
  • 3
  • 26
  • 28
5
votes
3 answers

How do I figure out what object my session is trying to serialize?

I recently upgraded to Spring Security 4.2.3.RELEASE. I'm also using spymemcached v 2.8.4. I'm running into this situation where for some reason Spring is trying to serialize service implementation classes. I can't figure out where this is coming…
Dave
  • 15,639
  • 133
  • 442
  • 830
5
votes
1 answer

spymemcache - Does MemcachedClient has a built-in connection pool?

I am using memcached, and use Java spymemcache to connect to it. My question is: Does MemcachedClient has a built-in connection pool? Can I reuse instance of the class for concurrent operation on memcached, or I need to create a new instance each…
Eric
  • 22,183
  • 20
  • 145
  • 196
1
2 3
12 13