Set up client libraries | Memorystore for Redis | Google Cloud Documentation
Skip to main content Console English Deutsch Español Español – América Latina Français Indonesia Italiano Português Português – Brasil עברית 中文 – 简体 中文 – 繁體 日本語 한국어 Sign in Memorystore Memorystore for Redis Start free Home Documentation Databases Memorystore Memorystore for Redis Reference Set up client libraries Stay organized with collections Save and categorize content based on your preferences.
This page shows how to install client libraries for the Memorystore for Redis API so you can connect to the API with the language of your choice. Installing the client library C++ See Setting up a C++ development environment for details about this client library's requirements and install dependencies. C# Install the Google.Cloud.Redis.V1 package in Visual Studio Go go get cloud.google.com/go/redis/apiv1 Java If you are using Maven, add this to your pom.xml file: < dependency > < groupId>com . google . cloud < / groupId > < artifactId>google - cloud - redis < / artifactId > < version>0 .62.0 - alpha < / version > < / dependency > If you are using Gradle, add this to your dependencies: compile ' com . google . cloud : google - cloud - redis : 0.62.0 - alpha ' If you are using SBT, add this to your dependencies: libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "0.62.0-alpha" If you're using VS Code, IntelliJ, or Eclipse, you can add client libraries to your project using these IDE plugins: Cloud Code for VS Code Cloud Code for IntelliJ The plugins provide additional functionality, such as key management for service accounts.
Refer to each plugin's documentation for details. Node.js npm install @google-cloud/redis PHP composer require google/cloud-redis Python For more on setting up your Python development environment, refer to Python Development Environment Setup Guide . pip install --upgrade google-cloud-redis Ruby gem install google-cloud-redis Setting up authentication Install the Google Cloud CLI. After installation, initialize the Google Cloud CLI by running the following command: gcloud init If you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity .
If you're using a local shell, then create local authentication credentials for your user account: gcloud auth application-default login You don't need to do this if you're using Cloud Shell. If an authentication error is returned, and you are using an external identity provider (IdP), confirm that you have signed in to the gcloud CLI with your federated identity . A sign-in screen appears. After you sign in, your credentials are stored in the local credential file used by ADC .
Additional Resources C++ API Reference Documentation Source Code GitHub Issue Tracker Stack Overflow C# API Reference Documentation Source Code GitHub Issue Tracker Stack Overflow Go API Reference Documentation Source Code GitHub Issue Tracker Stack Overflow Java API Reference Documentation Source Code GitHub Issue Tracker Stack Overflow Node.js API Reference Documentation Source Code GitHub Issue Tracker Stack Overflow PHP API Reference Documentation Source Code GitHub Issue Tracker Stack Overflow Python API Reference Documentation Source Code GitHub Issue Tracker Stack Overflow Ruby API Reference Documentation Source Code GitHub Issue Tracker Stack Overflow Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License .
For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates. Last updated 2026-11-10 UTC.