GithubHelp home page GithubHelp logo

Comments (8)

sh4nks avatar sh4nks commented on July 28, 2024 1

I am using it with redis at forums.flaskbb.org and I never ran into this issue (same for simple). I haven't tried it with memcache but I could imagine that it's a problem with the memcache libs as you have said.

I am not seeing a huge difference apart from the @cache.cached decorator. If I have a some spare time this weekend I'll try to put something together (i.e. Flask-Caching simple being a wrapper around mezmorize with an additional decorator for routes.).

from flask-caching.

reubano avatar reubano commented on July 28, 2024

The error happens on heroku but not my laptop.

from flask-caching.

reubano avatar reubano commented on July 28, 2024

Also key_prefix is request.url.

from flask-caching.

sh4nks avatar sh4nks commented on July 28, 2024

I am having a hard time to reproduce this. What did you do that this happens?

from flask-caching.

reubano avatar reubano commented on July 28, 2024

Nothing I haven't normally done. Just using @cache.cached() with the spreadsaslmemcached backend. I even tested the original plugin and got the same error. You can see how I solved the problem here. I assumed it was a py2/py3 thing. But now I suspect it's a difference in the memcache libs. Maybe heroku's version has some setting that triggers bytes.

from flask-caching.

sh4nks avatar sh4nks commented on July 28, 2024

Could you provide a test that fails? btw, how is mezmorize different from Flask-Caching? Maybe we should put our resources together instead of maintaining a slightly different version of Flask-Cache?

from flask-caching.

reubano avatar reubano commented on July 28, 2024

mezmorize is basically just the memoization part of Flask-Cache and also without the flask dep. It's meant to memoize regular functions (similar to lru_cache), not to be used on routes. I haven't gotten around to writing up documentation yet. Sure, I'd be open to collaborating since it really is just a subset. It should be possible to figure out a way to support both use cases in the same codebase.

from flask-caching.

reubano avatar reubano commented on July 28, 2024

My project is fairly large so extracting a base test case may take a while. Could you post the code you tried using to reproduce the issue? I could then work from that.

from flask-caching.

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.