anandasubedi / reddis-demo

Learn about Reddis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

reddis-demo

Learn about Reddis

Installation of Reddis Server ( Ubuntu )

sudo apt install redis-server

Use redis-cli command to open redis cli interface

Redis Commands

Check if a key exists

EXISTS <myKey>

Get Value of existing Key

GET <myKey>

SET or APPEND key

SET <myKey> "Hello" 
APPEND <myKey> " World!" 

SET is used to add expiration time to the Key as well, APPEND creates a new key if doesn't exists

About

Learn about Reddis


Languages

Language:Java 100.0%