Skip to content

Unable to use phpredis driver #10

@mathewpeterson

Description

@mathewpeterson

I am not able to use the phpredis driver. I am using the following versions: bernard/bernard => 50bc62608f8ee981c42522045bd94ce07b5d6f49, bernard/bernard-bundle => bb0ced39d96d8d8c3c2f96642455eab075b352d9, and snc/redis-bundle => c07fde6155bce0647204fbd4f9b249df95cc2922

Here are my config files:

bernard_bernard:
    driver: phpredis
    serializer: simple
snc_redis:
    clients:
        bernard:
            type: phpredis
            alias: bernard
            dsn: %redis_dsn%
            logging: false
            options:
                prefix: %redis_prefix%

There seems to be two issues, one that I can resolve, and the other I can't seem to figure out.

First the one that I can resolve:

SncRedisBundle restructured their client (snc/SncRedisBundle@30565b8#diff-babf1c52f9bae7fffab1219e227de24eR21)

Basically, they no longer return a instance of \Redis and instead return an instance of ClientInterface

I can temporarily bypass to change the typehint in the driver (https://github.com/bernardphp/bernard/blob/master/src/Bernard/Driver/PhpRedisDriver.php#L17) in the bernard/bernard bundle.

Now to the second issue I can't seem to figure out:

When I try and run the app/console bernard:consume my-message-queue command, I instantly receive a redis exception:

  [RedisException]
  read error on connection

I'm open to suggestions on how to debug this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions