Comments (4)
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.
Does this solve your issue?
from csaguzzlebundle.
Yes it does! thanks
from csaguzzlebundle.
You're welcome! 😄
from csaguzzlebundle.
Related Issues (20)
- Add documentation for making autowireable Guzzle client with custom class HOT 7
- X-Cache headers in list.html.twig HOT 1
- Tag a new version for 4.2 HOT 3
- Configure service for log middleware per client HOT 3
- cURL error 60: SSL certificate problem: certificate has expired HOT 1
- Mocking JWT/JKU service in tests is tedious HOT 2
- Provide a way to monitor clients created in code HOT 1
- How register a retry middleware? HOT 3
- New release to support twig 3 and symfony 5 HOT 2
- Make dependencies compatible with Twig 3.x HOT 1
- Tag a new version HOT 2
- Only load GuzzleExtension when profiler is available HOT 4
- Collect and let profiler show `proxy` request option HOT 1
- How to register a client with no middleware?
- [WIP] [RFC] Support for plugins HOT 1
- How to upgrade from 2.x to 3.x HOT 3
- Caching middleware & POST parameters HOT 1
- Tag a new version with guzzle 7 supports HOT 4
- Outdated log middleware documentation
- Use with Symfony 4.4 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csaguzzlebundle.