Skip to content

Commit e3483f7

Browse files
authored
Update README.md
1 parent e886fa3 commit e3483f7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ root@debian:~/bookscode/redis-5.0.3/deps/hiredis#make install
153153
```
154154
cat examples.c
155155

156-
```
156+
``` C
157157
#include <stdio.h>
158158
#include <stdlib.h>
159159
#include <string.h>
@@ -203,12 +203,12 @@ gcc example.c -I/usr/local/include/hiredis –lhiredis
203203
204204
### Python
205205
206-
```
206+
```
207207
root@debian:~/bookscode# git clone https://github.com/andymccurdy/redis-py.git
208208
```
209209
After downloading, don't rush to compile and install. First edit the redis-py/redis/client.py file and add the code as follows:
210210
211-
```
211+
``` Python
212212
# COMMAND EXECUTION AND PROTOCOL PARSING
213213
def execute_command(self, *args, **options):
214214
"Execute a command and return a parsed response"
@@ -267,7 +267,7 @@ Type "help", "copyright", "credits" or "license" for more information.
267267
>>>
268268
```
269269
### Bash
270-
```
270+
``` Bash
271271
#!/bin/bash
272272
set -x
273273
for ((i=1; i<=254; i++))
@@ -284,7 +284,7 @@ redis-cli ACCEPT.INSERT 192.168.18.5
284284
git clone https://github.com/nrk/redis-lua.git
285285
```
286286
First edit the redis-lua/src/redis.lua file and add the code as follows:
287-
```
287+
``` Lua
288288
redis.commands = {
289289
.....
290290
ttl = command('TTL'),
@@ -299,7 +299,7 @@ redis.commands = {
299299

300300
simple.lua `Luasocket don't forget to install`
301301

302-
```
302+
``` Lua
303303
package.path = "../src/?.lua;src/?.lua;" .. package.path
304304
pcall(require, "luarocks.require")
305305

0 commit comments

Comments
 (0)