Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move from redis to valkey #843

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Move from redis to valkey #843

wants to merge 1 commit into from

Conversation

jcscottiii
Copy link
Collaborator

Our code uses an Cache interface so we just need to implement another implementation of the cache interface for valkey.

Most of the work is renaming everything from redis to valkey.

The tests that use an actual instance in lib/valkeycache/cache_test.go needed no modifications besides renaming.

With this, we can use the latest version of valkey: 8.0. Whereas we were stuck on 7.2 beforehand.

One thing that is notable, the valkey client uses strings and []byte. We tend to like []byte instead. So what I did was restrict this implementation to []byte values.

Our code uses an Cache interface so we just need to implement another implementation of the cache interface for valkey.
# limitations under the License.

resource "google_network_connectivity_service_connection_policy" "valkey_policy" {
provider = google-beta
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't want to use the google-beta provider. We can keep this PR around until

  1. google_network_connectivity_service_connection_policy and google_memorystore_instance move to the stable provider, or
  2. We absolutely must move to valkey.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has now moved from BETA to GA. Check the release notes in this PR: #909

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant