Versions in this module Expand all Collapse all v1 v1.0.0 Dec 31, 2017 Changes in this version + func Get(c context.Context, key string) (interface{}, error) + func GetMembers(c context.Context, user *model.User, team string) ([]*model.Member, error) + func GetPerm(c context.Context, user *model.User, owner, name string) (*model.Perm, error) + func GetRepos(c context.Context, user *model.User) ([]*model.Repo, error) + func GetTeams(c context.Context, user *model.User) ([]*model.Team, error) + func Set(c context.Context, key string, value interface{}) error + func ToContext(c Setter, cache Cache) + type Cache interface + Get func(string) (interface{}, error) + Set func(string, interface{}) error + func Default() Cache + func FromContext(c context.Context) Cache + func NewTTL(t time.Duration) Cache + type Setter interface + Set func(string, interface{})