Versions in this module Expand all Collapse all v0 v0.4.0 Oct 26, 2015 Changes in this version + func Get(c context.Context, key string) (interface{}, error) + func GetPerms(c context.Context, user *model.User, owner, name string) *model.Perm + func GetRepos(c context.Context, user *model.User) []*model.RepoLite + func Set(c context.Context, key string, value interface{}) error + func SetPerms(c context.Context, user *model.User, perm *model.Perm, owner, name string) + func SetRepos(c context.Context, user *model.User, repos []*model.RepoLite) + 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 NewLRU(size int) Cache + func NewTTL(t time.Duration) Cache + type Setter interface + Set func(string, interface{})