Redis is an open source (BSD licensed), in-memory key-value data store used as:
Redis is an acronym for Remote Dictionary Server.
More .. https://redis.io/topics/data-types-intro
The below paragraph shows you the difference between SQL and Redis Query.
SQL:
insert into Products (id, name, description, price) values (10200, “ZXYW”,“Description for ZXYW”, 300);
Redis:
MULTI
HMSET product:10200 name ZXYW desc “Description for ZXYW” price 300
ZADD product_list 10200 product:10200
ZADD product_price 300 product:10200
EXEC
SQL:
select * from Products where id = 10200
Redis:
HGETALL product:10200
SQL:
select * from Product where price < 300
Redis:
ZRANGEBYSCORE product_price 0 300
HGETALL product:10001
HGETALL product:10002
HGETALL product:10003
The same idea can be used to perform theta join (complex join)