Spymemcached is a single-threaded, asynchronous memcached client written in java.
Questions tagged [spymemcached]
182 questions
4
votes
0 answers
Memcached not returning the stored bytearray
Amazon Elasticache used as Memcached to store a Inputstream (converted to byte array) like so
private static final int MEMCACHED_TIME_TO_LIVE = 15 * 60;
InputStream stream = item.openStream();
byte[] byteArray =…

Gaurav Agarwal
- 18,754
- 29
- 105
- 166
3
votes
1 answer
estimating size of Java objects inside memcached
I have a Java app that uses the spymemcached library (http://code.google.com/p/spymemcached) to read and write objects to memcached.
The app always caches the same type of object to memcached. The cached object is always an ArrayList of 5 or 6…

Mike W
- 1,128
- 1
- 13
- 27
3
votes
1 answer
How to configure SASL enabled memcached username and password on mac
I installed memcached version 1.4.34 on my mac using homebrew. I wanted to configure a username and password to enable SASL support when interacting with memcache. Can you point me the right direction for this?
Ran below command to install memcache…

User5817351
- 989
- 2
- 16
- 36
3
votes
0 answers
Memcached IO over error - memory leak
Liferay6.2 and tomcat7
I have a portlet application where i am calling my MemcachedClient class methods.
The below MemcachedClient class has code of creating a memcache client instance.It has set and get methods to set and get values in…

user6084236
- 31
- 4
3
votes
2 answers
Memcached: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file
Situation: I installed memcached on a CenTOS 5 (64 bit). I also ended up installing some PHP plugins using PECL, though they're unnecessary now.
Problem:When I execute
/etc/init.d/memcached start
I get the following error:
Starting memcached:…

Abhishek
- 743
- 1
- 15
- 28
3
votes
1 answer
Spymemcached, difference in time out in operations and connection factory
I have a spymemcached client that runs operations against a set of hosts. I've noticed that in get operations, you can do something like this:
Future

CBredlow
- 2,790
- 2
- 28
- 47
3
votes
1 answer
Difference xmemcached vs spymemcached
For your project chose memcached. Found two implementations for Java xmemcached and spymemcached. Very little information about the difference between these products.
What is the essential difference?
What is the advantage of one over the…

Gleb Belyaev
- 1,009
- 1
- 14
- 23
3
votes
1 answer
How to pass username and password in the localhost url to connect with the memcached in Java?
Hi, I want to pass the username and password to connect to localhost where I have deployed memcached.
Here is my code.
import java.io.IOException;
import java.net.InetSocketAddress;
import net.spy.memcached.MemcachedClient;
public class…

Zain
- 5,391
- 11
- 34
- 34
3
votes
1 answer
spymemcached throws ClassNotFoundException from SerializingTranscoder for BasicClientCookie
I'm using spymemcached version 2.8.1 to read a cookie object but I keep running into the following exception:
app[web.1]: WARN net.spy.memcached.transcoders.SerializingTranscoder:
Caught CNFE decoding 513 bytes of data
app[web.1]:…

pulkitsinghal
- 3,855
- 13
- 45
- 84
3
votes
0 answers
Spymemcached client and time out error
I am facing a weird problem with spymemcached client. Say I am in a box whose public ip is x and memcache is running in this box, when I run spymemcached client on the same box and connect to memcache using it's ip as x, I get a timeout error. When…

user1814769
- 41
- 3
3
votes
1 answer
Is spymemchached pre-loaded on heroku tomcat instances?
I am getting weird errors on Heroku cedar using hibernate-memcached 1.3:
Caught CNFE decoding 438 bytes of data java.lang.ClassNotFoundException: org.hibernate.cache.entry.CacheEntry
Somehow hibernate-memcached 1.3 is failing to work with…

user1644619
- 31
- 2
3
votes
0 answers
Operation timed out using CouchbaseClient
I am getting Timeout exceptions even though there is not much load on the Couchbase server.
net.spy.memcached.OperationTimeoutException: Timeout waiting for value
at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:1003)
at…

Amit Daga
- 127
- 4
- 13
3
votes
2 answers
Do client need to worry about multiple memcache servers?
Question:-
Does java client need to worry about multiple servers ?
Meaning:-
I have given two servers in memcached client, but when i set or get a key from cache, do i need to provide any server related info to it or memcache itself takes care of…

Anil Kumar
- 389
- 2
- 5
- 23
2
votes
2 answers
Spymemcache- Memcache/Membase Faileover
Platform: 64 Bit windows OS, spymemcached-2.7.3.jar, J2EE
We want to use two memcache/membase servers for caching solution. We want to allocate 1 GB memory to each memcache/membase server so total we can cache 2 GB data.
We are using spymemcached…

user989010
- 137
- 1
- 16
2
votes
1 answer
What should cas id for initial set call?
I am implementing CAS based memcached retrieval and have a possibly dumb question. If there is no entry for particular key, i.e. first time its stored, What should I set the cas id too?

Usman Ismail
- 17,999
- 14
- 83
- 165