Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
Description
Description
I noticed something strange with symfony cache. Itforbids to use a colon:
in the key name.
But, namespacing keys with redis is (was?) a best practice, and so we lose some power when usingredis insight for example.
In insight, I can profile redis, and it shows me what keys I use the most by grouping keys by pattern (a:b:c:*
)
As you can see, the "TOP KEY PATTERNS" is poorly detailed.
- Redis recommends to namespace key with a colon
- Redis insight uses this pattern to analyze keys and group results
- Symfony forbit me to use a colon in the but
- And moreover, Symfony itself, in the very end does use a colon (between the app prefix seed and my key (
f-yOWMrlsA:*
on the screenshot)
So to me, we should simply remove this restriction
Note:psr restricts this usage
Key - [...] The following characters are reserved for future extensions and MUST NOT be supported by implementing libraries: {}()/@:
But I don't use PSR, And I personally don't care about this PSR since I'm using Symfony contracts.
Example
No response