Skip to content

Cache: RedisAdapter doesn't support AWS ElastiCache with secure connection #30573

@alex-vasilchenko-md

Description

@alex-vasilchenko-md

Symfony version(s) affected: 4.2

Description
It's impossible to connect to AWS Elasticache using https://github.com/nrk/predis that supports rediss schema: http://www.iana.org/assignments/uri-schemes/prov/rediss
As a result you get an exception "Unsupported DSN: rediss://{aws-elasticache-uri}"

How to reproduce
You need to set up cache in framework.yml like this:

cache:
        app: cache.adapter.redis
        default_redis_provider: 'rediss://{aws-elasticache-uri}'

As client you need to set up Predis\Client

On init app will throw InvalidArgumentException.

Possible Solution
Add rediss dsn support here: https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Cache/Adapter/AbstractAdapter.php#L135

And here: https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Cache/Traits/RedisTrait.php#L83

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy