Skip to content

Commit bf0a72f

Browse files
committed
Redis
1 parent b8f782a commit bf0a72f

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

redis.md

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Redis online editor
2+
Write, Run & Share Redis queries online using OneCompiler's Redis online editor and compiler for free. It's one of the robust, feature-rich online editor and compiler for Redis. Getting started with the OneCompiler's Redis editor is really simple and pretty fast. The editor shows sample boilerplate code when you choose database as 'Redis' and start writing queries to learn and test online without worrying about tedious process of installation.
3+
4+
# About Redis
5+
6+
Redis is a open source, no SQL database which works on the concept of key-value pair.
7+
8+
### Key Features:
9+
10+
* In-memory data structure store
11+
* Works on Redis Client and Redis Server architecture where client and server can be on same computer or on different computers
12+
* Extremely fast
13+
* Supports append-only file persistence mode
14+
* Follows a very simple and fast Master/Slave replication
15+
* supports a number of languages
16+
17+
# Syntax help
18+
19+
## Commands
20+
21+
| Command | Syntax |
22+
|----|----|
23+
| Set| SET KEY_NAME VALUE|
24+
| Get| GET KEY_NAME|
25+
| Getset|GETSET KEY_NAME VALUE|
26+
| SetRange | SETRANGE KEY_NAME OFFSET VALUE|
27+
| Strlen| STRLEN KEY_NAME |
28+
| Append| APPEND KEY_NAME NEW_VALUE|
29+
| Exists | EXISTS KEY_NAME|
30+
| Delete | del KEY_NAME|
31+
| Increment counter | incr KEY_NAME|
32+
| Decrement counter | decr KEY_NAME|
33+
| Push Value to List | lpush listName value|
34+
| Push Value to Start/Beginning | rpush listName value|
35+
| Push Value to List only if it exists | lpushx listName value|
36+
| Remove & return value from list| lpop listName|
37+
| Remove & return value from Start/Beginning|rpop listName|
38+
| Set xth position element to value | lset listName x-1 value|
39+
| Check if hash key exists | hexists hashName field|
40+
| Get a hash key | hget hashName field|
41+
| Delete a hash key | hdel hashName field|
42+
| Get all hash content | hgetall hashName|
43+
| List all hash keys | hkeys hashName|
44+
| List number of hash keys | hlen hashName|
45+
| Get multiple hash keys| hmget key1 key2 ...|
46+
| Set multiple hash keys| hmset key1 value1 key2 value2...|
47+
| Increment a hash key | hincrby hashName field incrValue|

0 commit comments

Comments
 (0)