Quickstart using the Console

This page describes how to create a new Cloud Memorystore for Redis instance, connect to it, and then delete it.

Before you begin

  1. Sign in to your Google Account.

    If you don't already have one, sign up for a new account.

  2. Select or create a GCP project.

    Go to the project selector page

  3. Make sure that billing is enabled for your Google Cloud Platform project. Learn how to enable billing.

Creating a Redis instance

  1. Go to the Cloud Memorystore page in the Google Cloud Platform Console.
    Cloud Memorystore

    If the Cloud Memorystore page is unavailable, enable or re-enable the Memorystore for Redis API.
    Enable the API
  2. Click Create Instance.
    Memorystore UI
  3. On the Create an instance page, select the configurations for your new instance.
    • Choose Basic Tier, which creates a standalone instance.
    • Your instance's Name can be anything, but your Instance ID must be lowercase and unique in its region.
    • Select Redis version 4.0.
    • Instance capacity can range from 1 to 300 GiBs. Choose 20 GiBs.
    • Select the default network for your instance.
  4. Click Create.

    Your instance is created.

  5. After the instance is created, click the instance ID to view the instance details page.

    • Make a note of the IP address and the Port number.

Connecting to the Redis instance from a Compute Engine VM instance

You can connect to the Redis instance from any Compute Engine VM instance located within the same project, region and network as the Redis instance.

  1. Follow the instructions at Quickstart Using a Linux VM to create and connect to a Compute Engine VM instance. Make sure that you create your Compute Engine VM instance in the same region as your Redis instance. If you used a Debian 8 image to create your VM instance as described in the quickstart, install telnet using apt-get:

    sudo apt-get install telnet
  2. From the terminal, telnet to the IP address of the Redis instance, substituting your own instance's IP address and port number.

    telnet 6379
    Connected to
  3. In the telnet session, enter some Redis commands:


You can also use the Redis client to issue commands to the Redis instance. For more information on how to use the Redis client, see the Redis Quick Start Guide.

Clean up

To avoid incurring charges to your Google Cloud Platform account for the resources used in this quickstart:

  1. Go to the Cloud Memorystore page in the GCP Console.
    Cloud Memorystore
  2. Click the instance ID of the instance you want to delete.
  3. Click the Delete button.
  4. In the prompt that appears, enter the instance's name.
  5. Click Delete.

What's next

Was this page helpful? Let us know how we did:

Send feedback about...

Google Cloud Memorystore for Redis