Skip to content

Commit 9838cb1

Browse files
author
Roman.Sergeenko
committed
#RI-3479 - update readme (add redis-auto button)
1 parent f59fc07 commit 9838cb1

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,10 @@ or relative path to image inside the [statics](https://github.com/RedisInsight/T
109109

110110
#### Redis Code block
111111
![Redis Code block](docs/tutorials-redis-code-block.png)
112-
A button that inserts Redis code into the Code Editor. The syntax is almost the same as for [Fenced Code Block](https://www.markdownguide.org/extended-syntax/#fenced-code-blocks), the only difference is that you must specify `redis` as language and the label next to it (`Create` in the example below).
112+
113+
###### Manual-execute button
114+
A button that inserts Redis commands in the Editor. The syntax is almost the same as for the [Fenced Code Block](https://www.markdownguide.org/extended-syntax/#fenced-code-blocks),
115+
the only difference is that you must specify `redis` as language and the label next to it (`Create` in the example below).
113116
````
114117
```redis Create
115118
// Let's add three documents as Hashes.
@@ -123,6 +126,27 @@ A button that inserts Redis code into the Code Editor. The syntax is almost the
123126
124127
```
125128
````
129+
130+
###### Auto-execute button
131+
![img.png](docs/tutorials-redis-auto-code-block.png)
132+
133+
A button that automatically executes the Redis commands (without inserting it into the Editor). Such buttons will be displayed with the "Play" icon inside.
134+
The code syntax is the same as for the manually executed buttons, just indicate the `redis-auto` (instead of `redis`) before the button.
135+
136+
````
137+
```redis-auto Create
138+
// Let's add three documents as Hashes.
139+
// Each document represents a building permit.
140+
141+
HSET permit:1 "description" "To reconstruct a single detached house with a front covered veranda." "construction_value" 42000 "building_type" "single detached house" "address_city" "Lisbon" "work_type" "demolition,reconstruction" "permit_timestamp" "1602156878" "address_street" "R. Da Palma" "location" "38.717746, -9.135839"
142+
143+
HSET permit:2 "description" "To construct a loft" "construction_value" 53000 "building_type" "apartment" "address_city" "Porto" "work_type" "construction" "permit_timestamp" "1556546400" "address_street" "Rua da Boavista" "location" "41.155854, -8.616721"
144+
145+
HSET permit:3 "description" "New house build" "construction_value" 260000 "building_type" "house" "address_city" "Lagos" "work_type" "construction;design" "permit_timestamp" "1612947600" "address_street" "R. Antonio Gedeao" "location" "37.114864, -8.668521"
146+
147+
```
148+
````
149+
126150
## Autoupdate
127151
Our application supports the ability to quickly update the static files of the Enablement area so that we can provide users with up-to-date information.
128152

872 Bytes
Loading

0 commit comments

Comments
 (0)