Skip to content

When using redis cluster for caching, add global_prefix to all keys cached by redis #13604

@berg-wang

Description

@berg-wang

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

The redis cluster we used is used by various business applications to distinguish and manage the cached data of different projects by setting key prefixes for different projects. We now need to configure dify to use our redis cluster, and we want dify to also be able to add a global prefix to differentiate its cached data from other projects. For example, when I set global_prefix to "dify-ai:", all the keys stored by the dify project in redis cluster are under the 'dify-ai:' key

2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.

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