Comments (9)
doctrine:
orm:
entity_managers:
default:
query_cache_driver:
type: predis
cache_provider: predis
metadata_cache_driver:
type: predis
cache_provider: predis
result_cache_driver:
type: predis
cache_provider: predis
doctrine_cache:
providers:
predis:
type: predis
snc_redis:
clients:
default:
type: predis
alias: default
dsn: redis://localhost
from doctrinecachebundle.
Unrecognized option "host" under "doctrine_cache.providers.predis"
Umm it's because the options must be specified in another child node:
predis:
type: predis
<-- not there
predis:
host: '....' <-- but here
I think the documentation is missing a complete example for that.
from doctrinecachebundle.
But, I'm too trying use Doctrine Cache Bundle corresponds documentation, and my config dont work, when I'm adding host
options.
doctrine_cache:
providers:
predis:
type: predis
host: 192.168.1.1
InvalidConfigurationException in ArrayNode.php line 317:
Unrecognized option "host" under "doctrine_cache.providers.predis"
How do it should work? And why need to use Snc Redis Bundle?
I do not think that the issue can be considered closed.
Thank you for answer.
from doctrinecachebundle.
@stof then please tell me if I can not set the parameter "scheme" and it is not taken from the configuration, it turns out this bundle does not work?
from doctrinecachebundle.
@guilhermeblanco the fact that the definition classes are used also in other doctrine bundle indeed means that they have to check the config they receive (as the configuration is not yet taken from DoctrineCacheBundle in other bundles)
from doctrinecachebundle.
problem in: /vendor/doctrine/doctrine-cache-bundle/Doctrine/Bundle/DoctrineCacheBundle/DependencyInjection/SymfonyBridgeAdapter.php:94
from doctrinecachebundle.
Same here, it is not possible to define any provider settings for predis.
And in that config posted above doctrine cache is not using the client configured under snc_redis, just change dsn: redis://localhost
to dsn: redis://thissucks
and you'll see it's still using localhost.
from doctrinecachebundle.
Can someone write a failing unit test ?
from doctrinecachebundle.
Would love to see a proper documentation example for this. Maybe re-open this issue, or should a new issue be opened specifically for that?
Never mind, I guess https://symfony.com/doc/master/bundles/DoctrineCacheBundle/service_parameter.html demonstrates that.
from doctrinecachebundle.
Related Issues (20)
- Persistent connections exhaust connections to memcached server HOT 5
- Add option 'public' to cache providers HOT 10
- Missing namespace setting when using custom_provider
- Test failures with latest symfony (2.8.21, 2.3.0) HOT 3
- When a new release with namespace for custom providers? HOT 1
- DoctrineCacheBundle with Redis server went away HOT 3
- New release HOT 2
- PHP Parse Error HOT 1
- Missing default command name in DI tags HOT 11
- Why this bundle does not have a Symfony recipe? HOT 4
- doctrine:cache:clear Fatal error: Class 'Memcached' not found HOT 15
- Provide autowiring for cache provider HOT 2
- AclCacheInterface deleted from symfony? HOT 2
- phpunit configuration file (minor) HOT 3
- Deprecation of DoctrineCacheBundle HOT 16
- Give options to memcached driver HOT 6
- I can't configure DoctrineCacheBundle to work with Redis HOT 1
- Built-in provider complains about non-existing class HOT 1
- Memcached - missing class HOT 2
- question: Metadata caching fails on PHP7 phpredis HOT 7
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 doctrinecachebundle.