redis - erlang 学习

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/kkx12138/article/details/78933151

redis - erlang 学习

1. download redis

windows-exe:https://github.com/MSOpenTech/redis/releases

git source: https://github.com/antirez/redis

2. 启动 and 配置 and 简单熟悉

网上有教程,可以很快的启动和简单配置
http://www.runoob.com/redis/redis-install.html
简单熟悉

127.0.0.1:6379> set mykey abc
OK
127.0.0.1:6379> get mykey
"abc"

3. redis client download

git source: https://github.com/wooga/eredis
其中 根据readme可以很清楚的启动client

1> {ok, C} = eredis:start_link().
{ok,<0.58.0>}
2> eredis:q(C, ["SET", "mykey", "abc"]).
{ok,<<"OK">>}
3> eredis:q(C, ["GET", "mykey"]).
{ok,<<"abc">>}

4. redis 学习

《redis开发和运维》

5. 练习

类似于《erlang/otp 并发编程实践》中的缓存系统,用erlang + redis + mysql
做一个类似的系统。 目的是了解redis。
开发git: https://github.com/hongweikkx/kkcache.git

猜你喜欢

转载自blog.csdn.net/kkx12138/article/details/78933151