Quickstart Using the Google Cloud Platform 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 Manage resources page

  3. Make sure that billing is enabled for your 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.
    • Instance size can range from 1 to 300 GiBs. Choose 20 GiBs.
    • Select the default network for your instance.
  4. Click Create.

Your instance is created.

Connecting to the Redis instance from a Compute Engine VM

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. Connect to a Linux VM. For steps to connect to a Linux VM, see Quickstart Using a Linux VM. 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 10.0.0.27 6379
    Trying 10.0.0.27…
    Connected to 10.0.0.27
    
  3. In the telnet session, enter some Redis commands:

    PING
    +PONG
    SET HELLO WORLD
    +OK
    GET HELLO
    $5
    WORLD
    

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