Redis Client Install Mac

High

  1. Free Redis Client
  2. Mac Install Redis Cli
  3. Redis Client Install Mac Os
  4. Mac Os Redis Client

In this post we will see How To Install Redis On Mac OS X

To install Redis, run the following commands:

2
4
redis>set foo bar
redis>getfoo
Redis Client Install Mac

Video Instructions

Redis Client Install Mac

Free Redis Client

Installing redis under Linux
Introduction and use of redis
Introduction and installation of redis framework (MAC and windows)

Redis installation and use

Redis introduction

Our daily development, data need to be persistent storage, common persistent storage has many kinds, such as database, file, computer memory, and even cloud server are persistent storage of data. As far as database is concerned, it is often divided into relational database and non relational database. In our project, the relational database we use is mysql, the data stored in the relational database is mainly some core business data; in addition, in our project, there are some data that are unlikely to change, such as the regional data in the application, city list, or the statistics of the increase in the number of applications every day, and so on. These data are very important for us The requirement of timeliness is not particularly high. Therefore, in order to improve the storage efficiency of the application and improve the performance of the program, we will store some data that do not change obviously and often in the redis database.

So why can storage efficiency be improved by putting it in redis database? Redis database is a kind of non relational database, and its storage form is key value format. There are many ways to support it, such as memory, disk, file and so on. The characteristic of key value database is that it can locate the corresponding value directly according to the key. Therefore, compared with the table structure query method of relational database, the non relational database has very high execution efficiency, and we usually store the data in memory, and the speed of memory reading and writing is the fastest. Therefore, it can meet our needs of high traffic and high concurrency.

Redis database installation

Mac Install Redis Cli

Redis Client Install Mac
  • MAC system
    Install brew first

Redis Client Install Mac Os

1.brew install redis
2. Set redis server as an environment variable
vim .bash_profile
alias redis=/usr/local/Cellar/redis/5.0.0/bin/redis-server
Note: modify the configuration file and path to your own configuration
3. Execute redis and start redis service

  • Windows system

1. Download redis:https://github.com/MicrosoftArchive/redis/releases (or see the compressed package file)
2. The downloaded files are MSI files that can be installed and run directly
3. Click MSI file, and the steps are as follows:
Waiting for installation

1) First, find the installation directory where you want to install redis
2) Open the CMD terminal and enter the redis installation directory:
3) Execute redis- cli.exe The documents are as follows:
The above screen appears, indicating that the installation is successful.

  • Enter the redis terminal:redis-cli

Mac Os Redis Client

This work adoptsCC agreementReprint must indicate the author and the link of this article