Quick Setup of Redis Enterprise Cloud
The steps here are super simple and go as follows:
- Sign up for a Redis Enterprise Cloud account
- Create a new subscription
- Setup a database
- Connect to your Database
Step #1 – Sign up for Redis Enterprise Cloud account
If you do not already have one, sign up for a Redis Enterprise Cloud account.
If you already have an account, sign in to Redis Enterprise Cloud.
Step #2 – Create a new subscription
Add a new subscription to your account, if you do not already have one. If you have an existing subscription, then proceed to Step 3.
For a new subscription, you will need to select the following:
- The cloud and region you desire your database(s) to be created in
- A subscription name
- One of three subscription plans:
- Cache plans provide highly available, low-latency caching for applications when the authoritative version of the data is stored in another database. Cache plans do not include replication or data persistence so failures may result in an empty cache
- Standard plans can have a diverse set of features including in-memory replication, auto-failover, data persistence, and backups. Selecting this option will double the memory size of your dataset.
- Multi-AZ (Availability Zone) plans offer all the benefits of Standard plans, as well as auto-failover and in-memory replication to another availability zone.
- Memory size – select from 30MB (free) to 5GB ($33/mo), or a flexible pay-as-you-go model.
You can consider a quick overview of each tier’s features upon selection. For more specific information, see Creating a Subscription.
Once you have made your selections, click Continue to finalize your subscription.
Step #3 – Set up a database
- Give your database a name.
- Click the “Activate” button to create your database.
Step #4 – Reading and Writing Data
As a quick smoke test, telnet to your assigned endpoint and port. Then enter the Redis PING command. You should see something like this:
# telnet redis-19836.c9.us-east-1-2.ec2.cloud.redislabs.com 19836 Trying 188.8.131.52... Connected to redis-19836.c9.us-east-1-2.ec2.cloud.redislabs.com. Escape character is '^]'. AUTH my_redis_password PING +PONG
$ redis-cli -h redis-19836.c9.us-east-1-2.ec2.cloud.redislabs.com -p 19836 -a astrongpassword redis-19836.c9.us-east-1-2.ec2.cloud.redislabs.com:19836> PING PONG
You can get redis-cli and other command-line Redis tools through your favorite package manager or by installing Redis locally.
Once you have tested the connection to your Redis database, you can start reading and writing data. The following code snippet writes the value bar to the Redis key “foo”, reads it back, and then prints it. This snippet is written in Python, but you can use your favorite language (for examples in other languages, go here).
You first need to install the Redis client library for Python if you do not have it already.
$ sudo pip install redis
Next copy and paste this into a file named “example_redis.py”:
#import the library
# Create connection object
r = redis.Redis(
# set a value for the foo object
# retrieve and print the value for the foo object
Now run the code:
$ python example_redis.py bar
With that simple test complete, if you have existing code or an app that uses Redis, just change the host, port, password and SSL certificates and you are done.