# Redis-In-Action
Rewrite the code from the amazing book Redis-In-Action using `golang` and `go-redis/redis`, using `Go Modules` to manager the dependency.
### Configuration:
- All config messages are in the config/config.go file. Including the connection config to redis and a file path which used in Chapter05.
- Modify it to your own configuration information when needed.
### Running:
#### Using Docker:
> Tips for Chinese users: check the Dockerfile before running, uncomment line 4, this will speed you building process.
- check the config messages in the config/config.go file first, you may need to set your config for redis
- run `docker-compose up -d` in the directory.
- use `docker exec -it redis-in-action-golang go test ./Chapter0*/redisConn_test.go -v` to run the test, use number 1 through 8 to replace the `*` depending on the Chapter's examples you want to run.
#### Using command-line/terminal:
Open a command-line/terminal in the `golang` directory and execute follow command:
- `go mod download` to download the dependency, then:
- `go test ./Chapter0*/redisConn_test.go -v`, use number 1 through 8 to replace the `*` depending on the Chapter's examples you want to run.
### Todo:
-[ ] Chapter04:Lack the parts before 4.4
-[ ] Chapter06:Achieve the func DailyCountryAggregate
-[ ] Chapter09 - Chapter11
免责声明:
1.本资源仅供学习和交流使用,不保证其准确性、完整性、及时性或适用性。
2.本资源仅包含一般信息,不构成专业建议。在使用本资源时,请务必自行研究并谨慎决策。
3.我已尽力确保本资源的正确性和合法性,但不对其准确性、完整性和及时性做出保证。
4.本资源不应用于商业用途。
5.在使用本资源的过程中,用户应自行承担所有风险和责任,并遵守相关法律法规。
6.对于因使用本资源而产生的任何损失或损害,我概不负责。
请确保在使用本资源时仔细阅读并遵守以上免责声明。如果您有任何疑问或需要进一步帮助,请联系我。
没有合适的资源?快使用搜索试试~ 我知道了~
Redis实战基于Go实现,并添加中文注释-redis-in-action-go.zip
共38个文件
go:31个
sum:1个
rdb:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 24 浏览量
2024-01-30
21:29:07
上传
评论
收藏 48KB ZIP 举报
温馨提示
Redis实战基于Go实现,并添加中文注释-redis-in-action-go
资源推荐
资源详情
资源评论
收起资源包目录
Redis实战基于Go实现,并添加中文注释-redis-in-action-go.zip (38个子文件)
redis-in-action-go-master
Chapter03
common
common.go 148B
model
client.go 5KB
redisConn_test.go 9KB
Chapter05
common
common.go 438B
model
client.go 12KB
redisConn_test.go 5KB
go.mod 248B
Chapter01
common
common.go 152B
model
article.go 5KB
articleVote_test.go 2KB
Chapter07
common
common.go 922B
model
client.go 17KB
redisConn_test.go 10KB
go.sum 4KB
Chapter08
common
common.go 119B
model
client.go 11KB
redisConn_test.go 5KB
redisConn
redisConn.go 2KB
redisConn_test.go 2KB
utils
fileOperation.go 884B
utils.go 2KB
set.go 616B
docker-compose.yml 464B
Chapter02
repository
repository.go 338B
common
common.go 86B
model
client.go 5KB
redisConn_test.go 4KB
Dockerfile 182B
.gitignore 308B
dump.rdb 92B
Chapter06
common
common.go 89B
model
client.go 19KB
redisConn_test.go 9KB
README.md 2KB
Chapter04
common
common.go 121B
model
client.go 3KB
redisConn_test.go 3KB
config
config.go 192B
共 38 条
- 1
资源评论
武昌库里写JAVA
- 粉丝: 3556
- 资源: 2063
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 百度地图,显示闸站分布,以及切换闸站位置,上传闸站图片信息的cordova插件,包含百度地图和百度定位库文件
- 基于合泰单片机的智能夹球小车(esp8266代码+k210代码+合泰单片机代码)
- 一个天气查询的安卓APP
- 基于CC2530+DHT11温湿度传感器实现物联网多传感器火灾报警系统
- 基于51单片机的简易计算器 / 具有加减乘除四则运算功能
- 学校端午节比赛dwj-master.zip
- 基于qt实现简单的加减乘除四则运算
- python爬虫案例python-graphs.rar
- python爬虫案例python-graphics.rar
- python爬虫案例python-geometry.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功