Home Redis Overview
Post
Cancel

Redis Overview

Why use redis

  1. Faster than other DB
    REDIS is abbreviation of REmote DICtionary Server
  2. Simple and organized data structure
    Redis support strings, hashes, set, sorted set, list
  3. Simple feature set comparing to other DB
    In redis, there’s no triggers, data schema, FK constraints, Transaction rollback etc..

How to learn from redis.io/commands

SET example docs

In same bracket [] we have to use only single option not multiple options.

Why expiration is required?

Redis is memory based db and it origins from cache.

  1. Delete old cache
    Guarantee data consistency between redis and traditional database (original data)
  2. Prevent from running out of memory

Expiration is for caching!

This post is licensed under CC BY 4.0 by the author.

Locking

Redis multi key and range operation

Trending Tags