Skip to content

[Cache] No ability to add options in framework config #23962

@Bukashk0zzz

Description

@Bukashk0zzz
Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? no
Symfony version 3.3.4

I need add some options to \Memcache client. For example add specific options for elasticache connection http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/AutoDiscovery.Using.html#AutoDiscovery.Using.ModifyApp.PHP

My config look like this:

framework:
    cache:
        app: cache.adapter.memcached
        default_memcached_provider: 'memcached://%env(MEMCACHE_HOST)%'

I can't find the way how I can change client parameter in cache.adapter.memcached or add to exist needed options.

Will be great if we add option parameter. Example:

framework:
    cache:
        app: cache.adapter.memcached
        default_memcached_provider: 'memcached://%env(MEMCACHE_HOST)%'
        options: 
            - compression: true
            - client_mode: 'dynamic'

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