Searched refs:cacheSingleton (Results 1 – 2 of 2) sorted by relevance
14 var cacheSingleton *lru.Cache var24 id, ok := cacheSingleton.Get(cacheKey(url, branch))32 cacheSingleton.Add(cacheKey(url, branch), val)80 urlBranchPair, ok := cacheSingleton.Get(id)87 cacheSingleton.Add(id, []string{url, branch})139 cacheSingleton, _ = lru.New(cacheSize)
19 cacheSingleton, _ = lru.New(cacheSize)