Suggested approach for automatically namespacing keys #3765
killergerbah
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
You can submit a simple pull request as a proof of concept. Then it'll be easier for further discussion. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I don't know any straightforward way. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
On our project it is useful to be able to namespace keys such that applications belonging to different environments automatically read and write from distinct key spaces. For example, prefix keys belonging to the
dev1environment withdev1:, from thedev2environment withdev2:and so on. We had previously achieved this by implementing wrappers around each Redis command method, but this results in extremely large interfaces that are difficult to maintain.It seems to me that the best way to do this in Jedis 5.x would be to customize the
CommandObjectsbeing used byUnifiedJedis. However, the constructor that would allow this type of customization is currently private.I have two questions:
UnifiedJedismore customizable by making some of the constructors eitherprotectedorpublic?Beta Was this translation helpful? Give feedback.
All reactions