Rename __redis__:invalidate to __valkey__:invalidate from client-side-caching #410
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Change the name of the internal tracking channel handled by client side caching from redis to valkey.
And then, Update in the corresponding
tracking.c
,tracking.tcl
, andclient-eviction.tcl files
.I tested Client tracking through the valkey server.
The test environment has three clients and one server.
Test scenario:
I checked the ID value of each client.
Firstly, in Client 7(ID), command "Client tracking on redirect 8".
Enter the subscribe valkey:invalidate command on Client 8 (ID), and it is in the subscribe state.
Check the current value with get Tracking_key command on Client 7 (ID).
Result: (nill)
Next, enter the “set Tracking_key value1” command on Client 9 (ID).
At the same time, confirm that a message has been received from Client 8 (ID).
You can check the changed Tracking_key value in Client 7 (ID) as picture of client 7.
Lastly, When Client 9(ID) changes back to value5 of Tracking_key, You can see that the valkey:invalidate invalidation message was received from client 8 (ID).
It can check the changed Tracking_key value again in Client 7 (ID).
In conclusion, it was confirmed through testing that it was processed without problems.