Giter Site home page Giter Site logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 3, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 3, 2024
[deleted comment]

from spymemcached.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 3, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 3, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 3, 2024
[deleted comment]

from spymemcached.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 3, 2024
Thanks Working fine.

Original comment by [email protected] on 4 Dec 2014 at 5:43

from spymemcached.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 3, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.