Comments (7)
I think the easiest for you would be to create a custom transcoder. Just check
the default implementation, implement the skeleton as a "pass through" and
provide it to the get command. This will return you the byte[] directly as we
take it from NIO.
Original comment by [email protected]
on 3 Dec 2014 at 6:54
from spymemcached.
[deleted comment]
from spymemcached.
Thanks for your quick revert. I created one custom Transcode<byte[]> and passed
it through get command.
I am getting following error..
java.lang.IllegalArgumentException: Cannot cache data larger than 0 bytes (you
tried to cache a 4 byte object)
at net.spy.memcached.CachedData.<init>(CachedData.java:55)
at net.spy.memcached.MemcachedClient$5.gotData(MemcachedClient.java:1031)
at net.spy.memcached.protocol.ascii.BaseGetOpImpl.handleRead(BaseGetOpImpl.java:147)
at net.spy.memcached.protocol.ascii.OperationImpl.readFromBuffer(OperationImpl.java:129)
at net.spy.memcached.MemcachedConnection.readBufferAndLogMetrics(MemcachedConnection.java:813)
at net.spy.memcached.MemcachedConnection.handleReads(MemcachedConnection.java:792)
at net.spy.memcached.MemcachedConnection.handleReadsAndWrites(MemcachedConnection.java:672)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:635)
at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:409
Could you please point to some examples for implementation.
Original comment by [email protected]
on 3 Dec 2014 at 7:35
from spymemcached.
Just for the sake of decoding maybe try:
https://gist.github.com/daschl/ef05c435c36ef1dfdb5c
Original comment by [email protected]
on 3 Dec 2014 at 7:50
from spymemcached.
[deleted comment]
from spymemcached.
Thanks Working fine.
Original comment by [email protected]
on 4 Dec 2014 at 5:43
from spymemcached.
Cheers! If you want to write data just implement this one also as a passthrough
Original comment by [email protected]
on 4 Dec 2014 at 6:15
from spymemcached.
Related Issues (20)
- NPE happening in TCPMemcachedNodeImpl.fillWriteBuffer under heavy load
- Memory Leak in LinkedBlockingQueue in AsciiMemcachedNodeImpl/TCPMemcachedNodeImpl
- JVM crashed always with Memcached IO over
- NPE
- Allow to configure MAX_CLONE_COUNT parameter
- CASMutator.cas should throw typed exception
- read/write queues are not being cleared incase of faulty server:port, proposed a fix
- How to get more two values using get(key) API ?
- Broken link on "Project Home"
- Memcache sets taking unusually long time HOT 1
- MemcacheClient with SerializingTranscoder isn't thread safe
- Very big performance issue with large numbers of asyncGets
- java.lang.AssertionError: Unknown line type: STORED HOT 1
- can spymemcached cause race condition?
- Missing CAS API (With exp. time and without Transcoder) HOT 1
- Booleans contained in Clojure maps deserialized as new instances of java.lang.Boolean - breaks "if" HOT 1
- Client never connects with small timeout (auth problem)
- getBulk() doesn't use FailureMode HOT 3
- Set request fails after restarting the server HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spymemcached.