Code Monkey home page Code Monkey logo

Comments (5)

comandeo avatar comandeo commented on July 30, 2024

@samfrench Thank you for raising the issue, I'm going to take a look.

from crystal-memcached.

comandeo avatar comandeo commented on July 30, 2024

@samfrench I think I fixed the problem. Could you please check if it works for you now? Thanks!

from crystal-memcached.

samfrench avatar samfrench commented on July 30, 2024

Thank you @comandeo. When I run the specs they pass. I am still getting an error with my application as only puts 8164 characters in the cache which is a truncated output. I am currently investigating why this is. If I can't solve it I'll try and get a failing test to replicate the scenario as it might be something I am doing incorrectly.

from crystal-memcached.

samfrench avatar samfrench commented on July 30, 2024

It actually looks like our large value we are putting into memcached has a non-utf8 character. This is now where the value is breaking for us, so this issue has been resolved as we can now put large values into memcached and retrieve them. Thank you for the quick fix @comandeo as this allows us to progress further with our application.

from crystal-memcached.

comandeo avatar comandeo commented on July 30, 2024

@samfrench Thanks for the feedback, I am closing this issue.
However, you gave me some food for thoughts. Values in memcached seems to be just bytes - https://github.com/memcached/memcached/wiki/BinaryProtocolRevamped#data-types Maybe it is a good idea to allow clients to operate with slices, but not strings as values. Something like

def get(key : String) : Slice(UInt8)?

from crystal-memcached.

Related Issues (12)

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.