GithubHelp home page GithubHelp logo

Comments (9)

Avtonom avatar Avtonom commented on May 18, 2024 4
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.

kaiwa avatar kaiwa commented on May 18, 2024 3

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.

keltanas avatar keltanas commented on May 18, 2024 2

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.

Avtonom avatar Avtonom commented on May 18, 2024 1

@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.

stof avatar stof commented on May 18, 2024

@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.

Avtonom avatar Avtonom commented on May 18, 2024

problem in: /vendor/doctrine/doctrine-cache-bundle/Doctrine/Bundle/DoctrineCacheBundle/DependencyInjection/SymfonyBridgeAdapter.php:94

from doctrinecachebundle.

kaiwa avatar kaiwa commented on May 18, 2024

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.

mikeSimonson avatar mikeSimonson commented on May 18, 2024

Can someone write a failing unit test ?

from doctrinecachebundle.

alcohol avatar alcohol commented on May 18, 2024

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)

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.