gin-contrib / gin-contrib/cache

Can I ask you some questions ?

Open
#25 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
456
Forks
100
Avg merge
2h 16m
Merged PRs (30d)
2

Description

https://github.com/gin-contrib/cache/blob/a8e2fb11ffd40f9a4bbb2606db19a4500949227f/cache.go#L113

Hi, I'm learning this project's code, I wanna ask you two questions:

  1. Why the Cache function use a interface pointer parameter? How can I use this function?
  2. Why the SiteCache function defined a unused parameter: expire ? What place should I use this function?

Can you give me a answer if you have time?Look forward to your reply,Thank you!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with cache.go around line 113, then inspect the definitions and call sites for Cache and SiteCache. Document what the interface pointer parameter is for, how Cache is used, why SiteCache accepts expire, and provide a clear usage example if the repository supports one.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.