Documentation ¶
Index ¶
- type Cache
- func (c *Cache) Clear(repo string) error
- func (c *Cache) GetDOT(repo string, cluster bool) (string, error)
- func (c *Cache) GetSVG(repo string, cluster bool) (string, error)
- func (c *Cache) RepoScoreIncr(repo string)
- func (c *Cache) RepoScores() ([]string, error)
- func (c *Cache) SetDOT(repo string, cluster bool, dot string)
- func (c *Cache) SetSVG(repo string, cluster bool, svg string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache holds Redis client and log state.
func (*Cache) RepoScoreIncr ¶
RepoScoreIncr increments the popularity score for a repo.
func (*Cache) RepoScores ¶
RepoScores returns the top-10 most popular repos
Click to show internal directories.
Click to hide internal directories.