Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Closed
@alex-vasilchenko-md

Description

@alex-vasilchenko-md
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.