This article will show you how to set up a redis Cache Server.The redis Cache Server in the article is set up in Cloud (free 30MB).
Come on, let’s enjoy FA.
redis?
Redis is an open source data structure server and belongs to the class of NoSQL databases known as Key/Value.
- Key is a unique identifier.
- Value stores the Key value in one of the data types supported by Redis.
These data types range from simple strings to linked lists, sets, and streams.Each data type has its own set of Redis-related behaviors and commands.
For example, a Key named “myname” can be stored in a Redis String and associated with the key “myname” using the Redis SET command.The value is then retrieved using the Redis GET command.
127.0.0.1:6379> set myname “FANUC CNC” OK 127.0.0.1:6379> get myname “FANUC CNC” |
Redis declares itself as a very fast database.This speed comes from the fact that all data is stored and served in memory rather than on disk.Because Redis is durable, data is persistent, but all reads are taken from a copy of the data held in memory.For this reason, Redis may be best suited for applications that require real-time data access.
Getting Started!
Click “Try Redis” from the redis homepage to build a Redis Server.In this first article, we will create a Redis Server in Cloud.
Create an account.
Done!Here is the Redis Server dashboard.
Add Database
Next, add new Databases by clicking the + button next to Databases.
The Databases setup screen will appear.
Create a Cache Server.
Cloud Vendor will match the actual application.I have no particular preference, so I set it appropriately.
If you set the capacity selection next to Database Details to 30 MB, it will be free.
Finally, click on “Create database” to create your database.
Please wait a moment…
Done!A Redis Server has been created.
Connect!
Next, click the Connect button to connect to the Redis Server in the Cloud.
On the right side of the screen, you will see a number of configuration options, the simplest of which is Redis Insight.
Install Redis Insight
If Redis Insight is not already installed, click the “Download” button.
Set permissions to use Redis Insight and proceed with Next>.
Set the installation Location for Redis Insight and proceed with Install.
Please wait a moment…
Done!
Play with Redis Insight!
Start Redis Insight, which you have just installed.
Accept the license to use Redis Insight and proceed with Submit.
Done!
Add Database Connection
Finally, click “+Add Redis database” to add a new Redis Server connection.
This is the Add Database screen.
This time, we will add data manually.
The Redis Cache Server you just created from the Redis website has a “Public endpoint”.
In the Host field, paste in the “Public endpoint” and the Port number will be automatically set.
Next, set the Username and Password.
Copy and paste the Default User and Password from the Security column of the Redis Cache Server created from the Redis website.
To be sure, click Test Connection to check the connection between Redis Cache Server and Redis Insight.
Done!
Finally, click “Add Redis database” to add the connection.
Done!
The Server you just added appears on the Database screen.
The setup is now OK.The following Tutorial will introduce simple command operations.