jaredwray / cache-manager

Cache module for Node.JS
MIT License
1.4k stars 152 forks source link

prefix configuration option for cache keys #665

Closed ezerdemello closed 2 months ago

ezerdemello commented 3 months ago

Is your feature request related to a problem? Please describe.

I'm implementing a cache solution for an API and i'm using "cache-manager-redis-yet", but in my organization the redis is single for all products. So we need create a prefix for the cache keys.

Describe the solution you'd like

Are there any configuration option that allow me setup and create keys with prefix?

Exemple:

${prefixOption}:key environment:project-name:key

PS: english from google's translator

jaredwray commented 2 months ago

Adding this pull request for reference: https://github.com/jaredwray/cache-manager/pull/666

jaredwray commented 2 months ago

@ezerdemello this will be released in the next 2-3 weeks.

ezerdemello commented 2 months ago

Jared Wray, thanks for approve this pull request. It will help me to solve an big problem here.

Em qui., 9 de mai. de 2024 às 14:59, Jared Wray @.***> escreveu:

@ezerdemello https://github.com/ezerdemello this will be released in the next 2-3 weeks.

— Reply to this email directly, view it on GitHub https://github.com/jaredwray/cache-manager/issues/665#issuecomment-2103158015, or unsubscribe https://github.com/notifications/unsubscribe-auth/AINJ3YLQHQRBMSU3FQWHS6DZBO2RVAVCNFSM6AAAAABGONRMJWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBTGE2TQMBRGU . You are receiving this because you were mentioned.Message ID: @.***>