2012年10月17日水曜日

redis使ってみたのでメモメモ

叩いたコマンド


inde-baruiotto-no-iMac:~ shhirats$ which redis-cli
/opt/local/bin/redis-cli
inde-baruiotto-no-iMac:~ shhirats$ redis-cli
redis 127.0.0.1:6379> set foo 3 bar
(error) ERR wrong number of arguments for 'set' command
redis 127.0.0.1:6379> set foo 3
OK
redis 127.0.0.1:6379> get foo
"3"
redis 127.0.0.1:6379> set foo bar
OK
redis 127.0.0.1:6379> get foo
"bar"

今度はPHPで使ってみようと思う

0 件のコメント:

コメントを投稿