Giter VIP home page Giter VIP logo

Comments (8)

andrefelipe avatar andrefelipe commented on May 19, 2024

Hi Kevin, thanks for the library, I am using in production just fine!

When you have time, could you write an example on how to implement the Flysystem cache? I tried but couldn't figure out how. I am new into this.

Thanks again! BTW I have you referenced here in Orchestrate library https://github.com/andrefelipe/orchestrate-php#cache-middleware

from guzzle-cache-middleware.

Kevinrob avatar Kevinrob commented on May 19, 2024

@andrefelipe Hi, thank you for using it!
I will do that ASAP ;)

from guzzle-cache-middleware.

Raffaello avatar Raffaello commented on May 19, 2024

Hi,

can I even point that the example given for the public cache seems wrong?

the code example should use the PublicCacheStrategy instead is using like the private one PrivateCacheStrategy.

Or what's the diffrerence between PrivateCacheStrategy and Public One?
(anyway it is enough to read the comment in the code :)

thank you.

from guzzle-cache-middleware.

Kevinrob avatar Kevinrob commented on May 19, 2024

Hi @Raffaello, you're right!

The difference is about privacy and cache headers. Public cache will not cache something marked as Cache-Control: private. One good explication here.

from guzzle-cache-middleware.

Kevinrob avatar Kevinrob commented on May 19, 2024

@andrefelipe I have added an example for Flysystem in the README. Sorry for taking some time to do it!

from guzzle-cache-middleware.

andrefelipe avatar andrefelipe commented on May 19, 2024

Hey @Kevinrob thank you very much! Interesting to see the possibility to cache in S3 buckets. Not sure the IO delay will pay off, but great to have the possibility.

from guzzle-cache-middleware.

bogdanghervan avatar bogdanghervan commented on May 19, 2024

Good job on this beautifully designed package!

After a bit of poking around I found out that the caching strategy I really need is GreedyCacheStrategy and I think this should be documented as well in the README. In fact, I composer-required this package expecting it to do just that - cache every Guzzle request regardless of any cache-related recommendation in the response.

My use case is this: I'm writing a Goutte-based web scraper and I need to cache Guzzle responses for a reasonable amount of time.

from guzzle-cache-middleware.

afoeder avatar afoeder commented on May 19, 2024

@bogdanghervan : #80

from guzzle-cache-middleware.

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.