Code Monkey home page Code Monkey logo

Comments (4)

csarrazi avatar csarrazi commented on June 3, 2024

Please read the docs before writing issues. Using doctrine/cache is fully documented here.

You may add any Doctrine cache implementation of your choice. You simply need to configure the bundle as follows:

# in config.yml
csa_guzzle:
    cache:
        enabled: true
        adapter:
            type: doctrine
        service: my.cache.service

# in services.yml
services:
    my.cache.service:
        class: Doctrine\Common\Cache\RedisCache

However, keep in mind that the bundle's configuration will change slightly for version 1.3, as you will only be able to set a cache adapter. Then, the configuration will change to:

# in config.yml
csa_guzzle:
    cache:
        enabled: true
        adapter: my.cache.adapter

# in services.yml
services:
    my.cache.adapter:
        class: Csa\Bundle\GuzzleBundle\GuzzleHttp\Cache\DoctrineAdapter
        arguments: [ @my.cache.service ]
    my.cache.service:
        class: Doctrine\Common\Cache\RedisCache

my.cache.service may also be created using doctrine-cache-bundle, and you can even create your own adapter by using snc/redis-bundle (or directly use phpredis), and implement Csa\Bundle\GuzzleBundle\GuzzleHttp\Cache\StorageAdapterInterface.

from csaguzzlebundle.

csarrazi avatar csarrazi commented on June 3, 2024

Does this solve your issue?

from csaguzzlebundle.

TNAJanssen avatar TNAJanssen commented on June 3, 2024

Yes it does! thanks

from csaguzzlebundle.

csarrazi avatar csarrazi commented on June 3, 2024

You're welcome! 😄

from csaguzzlebundle.

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.