Getting started with NoSql and Redis

JavaWeb [Redis] Getting started with NoSql and Redis

The difference between relational database and non-relational database

Learn three databases: MySql Redis Oracle

  • (1) What is NOSQL
    NoSQL (NoSQL = Not Only SQL), which means "not just SQL", is a brand-new database concept that refers to non-relational databases in general.
    NOSQL is a non-relational database
    MySql Oracle: Relational database
    Redis: is NOSQL Non
    -relational database The difference between a relational database and a non-relational database: ****
  • (1) Relational database characteristics (Mysql Oracle SqlServer)
    "1: The data is composed of tables , and there is a relationship between these tables (one-to-one, one-to-many, many-to-many)
    "2: Data is stored on the hard disk, and every time it is accessed, the data is read from the hard disk to the memory
    Insert picture description here

(2) Non-relational database (NOSQL) features (Redis)
"1: Data is a key-value pair : key-value key-value
"2: Data is stored in memory , when you need it, you can also save the data Stored on the hard disk (Redis persistence)
Insert picture description here

Why do you need NOSQL?

  • (1) All relational databases have three high problems
    " "1 High concurrent
    access volume within 1 second
    " "2 High efficiency
    reading and writing speed
    " "3 High scalability,
    can not modify the table at will
    NOSQL database (Redis) can all solve the three high problem
  • (2) Case: 12306

Introduction to Redis***

  • (1) What is Redis?
    Redis (Remote Dictionary Server) remote dictionary service, is a non-relational database, non-relational database is called NOSQL database
  • (2) What is the use of Redis?
    With redis, is it possible to not use Mysql, Oralce?
    Redis is generally used to store data that is frequently accessed but not frequently changed
    Insert picture description here

Redis features

  • (1) What are the characteristics of Redis?
    》》1 Use C language to develop pointer memory address new Object()
  • (2) What are the application scenarios of Redis?
    》》1 Cache some temporary data
    》》》2 Online friend list in chat room
    》》3 Website visit statistics

Redis software download

  • (1) The Linux version of Redis
    officially promotes the use of Linux version of Redis, so the official website value provides Linux version of Redis download
  • (2) We can download the Windows version of
    Redis from GitHub. The specific link address is as follows:
    official website download address: http://redis.io/download
    github download address: https://github.com/MSOpenTech/redis/tags

Redis software catalog

  • (1)
    Redis directory structure redis.windows.conf configuration file
    redis-server.exe server execution program
    redis-cli.exe client execution program
    startup.bat server startup script (start the server with this script)
    Insert picture description here
  • (2) Redis port is: 6379
    Tomcat port is: 8080
    MySql port is: 3306
  • (3) Start and close the window version of Redis
    Start: run startup.bat and
    close: close the window
    Insert picture description here

Guess you like

Origin blog.csdn.net/qq_37924905/article/details/108737104