provide go-redis/redis extend features
go get github.com/fmyxyz/go-redis-plus@latest
type mapping:
Action | golang type | redis type |
---|---|---|
get | struct | Hash |
get | map[string]string | Hash |
get | map[string]interface{} | Hash |
get | slice | List/Set |
get | array | List/Set |
get | other | String |
set | struct | Hash |
set | map | Hash |
set | slice | List/Set |
set | array | List/Set |
set | other | String |
See: xredis_test.go