# 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
没有合适的资源?快使用搜索试试~ 我知道了~
redis 实战源代码(不同语言)
共124个文件
go:30个
js:20个
py:12个
需积分: 5 0 下载量 161 浏览量
2022-08-31
06:37:20
上传
评论
收藏 305KB ZIP 举报
温馨提示
redis 实战源代码(不同语言)
资源详情
资源评论
资源推荐
收起资源包目录
redis 实战源代码(不同语言) (124个子文件)
ch04.awk 4KB
ch01.awk 3KB
gradlew.bat 2KB
chapter06.clj 10KB
chapter03.clj 7KB
chapter05.clj 5KB
chapter02.clj 4KB
chapter01.clj 3KB
chapter04.clj 2KB
util.clj 410B
project.clj 402B
core.clj 127B
Dockerfile 182B
Dockerfile 115B
Gemfile 83B
.gitignore 308B
.gitignore 219B
.gitignore 23B
client.go 18KB
client.go 17KB
client.go 12KB
client.go 11KB
redisConn_test.go 10KB
redisConn_test.go 9KB
redisConn_test.go 7KB
redisConn_test.go 5KB
client.go 5KB
redisConn_test.go 5KB
redisConn_test.go 4KB
client.go 3KB
client.go 3KB
article.go 3KB
redisConn_test.go 2KB
utils.go 2KB
redisConn_test.go 1KB
common.go 922B
fileOperation.go 884B
set.go 624B
common.go 438B
redisConn.go 383B
repository.go 338B
config.go 192B
common.go 148B
common.go 121B
common.go 121B
common.go 119B
common.go 89B
common.go 86B
build.gradle 586B
settings.gradle 38B
gradlew 5KB
Guardfile 328B
excerpt_errata.html 30KB
gradle-wrapper.jar 50KB
commons-csv-20070730.jar 24KB
Chapter07.java 32KB
Chapter06.java 32KB
Chapter05.java 24KB
Chapter08.java 18KB
Chapter09.java 16KB
Chapter02.java 13KB
Chapter04.java 8KB
Chapter01.java 5KB
mocha-test.js 7KB
main.js 6KB
main.js 5KB
ch02.test.js 5KB
main.js 4KB
main.js 4KB
index.js 3KB
ch05.test.js 3KB
ch04.test.js 3KB
main.js 3KB
ch01.test.js 2KB
index.js 1KB
index.js 1KB
test.js 1KB
run-mocha-tests.js 741B
index.js 700B
.eslintrc.js 593B
utils.js 562B
main.js 540B
config.js 232B
package-lock.json 56KB
package.json 597B
package.json 501B
LICENSE 1KB
Gemfile.lock 1KB
README.md 1KB
README.zh.md 1009B
README.md 921B
README.md 843B
README.md 732B
README.md 543B
README-DOCKER.md 357B
readme.md 294B
README.md 159B
go.mod 208B
.prettierrc 78B
gradle-wrapper.properties 230B
共 124 条
- 1
- 2
youlong118
- 粉丝: 0
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0