Skip to content

[Cache] prefix_seed option by cache pool #59509

@LouisGrde

Description

@LouisGrde

Symfony version(s) affected

5.4

Description

Hello, I have a case where I have a redis common to 2 projects and I want to define a prefix_seed according to the pool because I already have a global prefix_seed on one of the 2 projects. The other project doesn't have a global prefix_seed, so I don't want to set the global prefix_seed for it, as I run the risk of breaking cache pools that shouldn't be broken. But I would like to define the prefix_seed only for a new cache pool so that it is common to both projects.

I quickly started modifying the vendors to add the option per pool. Do you think it's relevant for me to clean this up and do a PR?

This could lead to something like:

    property_cache_redis:
      adapter: cache.adapter.redis
      provider: snc_redis.persistent_cache
      default_lifetime: 86400
      custom_prefix_seed: 'cool'

in your cache.yaml

PS : Sorry for my english

Metadata

Metadata

Assignees

No one assigned

    Labels

    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