Skip to content

Commit 4e7dbf8

Browse files
Merge pull request #904 from idlewan/redis
Add redis database and nawak-redis test
2 parents c7c18d1 + bcac729 commit 4e7dbf8

File tree

9 files changed

+835
-3
lines changed

9 files changed

+835
-3
lines changed

config/create-redis.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
RANGE=10000
2+
for i in {1..10000}
3+
do
4+
value=$RANDOM
5+
let "value = (value % $RANGE) + 1"
6+
echo "SET world:$i $value" | redis-cli > /dev/null
7+
done
8+
9+
echo "DEL fortunes" | redis-cli
10+
echo "RPUSH fortunes 'fortune: No such file or directory' \
11+
\"A computer scientist is someone who fixes things that aren't broken.\" \
12+
'After enough decimal places, nobody gives a damn.' \
13+
'A bad random number generator: 1, 1, 1, 1, 1, 4.33e+67, 1, 1, 1' \
14+
'A computer program does what you tell it to do, not what you want it to do.' \
15+
'Emacs is a nice operating system, but I prefer UNIX. — Tom Christaensen' \
16+
'Any program that runs right is obsolete.' \
17+
'A list is only as strong as its weakest link. — Donald Knuth' \
18+
'Feature: A bug with seniority.' \
19+
'Computers make very fast, very accurate mistakes.' \
20+
'<script>alert(\"This should not be displayed in a browser alert box.\");</script>' \
21+
'フレームワークのベンチマーク'" | redis-cli

config/database_sftp_batch

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ put config/mysql
1414
put config/mysql.conf
1515
-mkdir cassandra
1616
put -r config/cassandra
17+
put config/redis.conf
18+
put config/create-redis.sh

0 commit comments

Comments
 (0)