Setting up client libraries

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


See Setting up a C++ development environment for details about this client library's requirements and install dependencies.


Install the Google.Cloud.Redis.V1 package in Visual Studio


go get


If you are using Maven, add this to your pom.xml file:


If you are using Gradle, add this to your dependencies:

compile ''

If you are using SBT, add this to your dependencies:

libraryDependencies += "" % "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:

The plugins provide additional functionality, such as key management for service accounts. Refer to each plugin's documentation for details.


npm install --save @google-cloud/redis


composer require google/cloud-redis


For more on setting up your Python development environment, refer to Python Development Environment Setup Guide.
pip install --upgrade google-cloud-redis


gem install google-cloud-redis

Setting up authentication

  1. Install and initialize the gcloud CLI.

    When you initialize the gcloud CLI, be sure to specify a Google Cloud project in which you have permission to access the resources your application needs.

  2. Configure ADC:

    gcloud auth application-default login

    A sign-in screen appears. After you sign in, your credentials are stored in the local credential file used by ADC.

Additional Resources