gin-contrib / gin-contrib/cache
how to use the func "Dial" in other package
Open
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 456
- Forks
- 100
- Avg merge
- 2h 16m
- Merged PRs (30d)
- 2
Description
rs = persistence.NewRedisCache(host, password, 0)
c, err := rs.pool.Dial()
if err != nil {
global.Log.Println(err)
global.Log.Fatalf("open redis connection error")
}
`` ``
tip: "rs.pool undefined (cannot refer to unexported field or method pool)"
thx
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with persistence/redis.go at line 22 and inspect how NewRedisCache exposes the Redis connection. Clarify the supported way to use Dial from another package, or document that usage if supported; done means the example no longer relies on the inaccessible rs.pool field.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, redis
- Domain
- databases
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100