TODO store in blockstore
(key string)
| 180 | // TODO store in blockstore |
| 181 | |
| 182 | func GetFromCache(key string) (FaviconCacheItem, bool) { |
| 183 | faviconCacheLock.Lock() |
| 184 | defer faviconCacheLock.Unlock() |
| 185 | item, found := faviconCache[key] |
| 186 | if !found { |
| 187 | return FaviconCacheItem{}, false |
| 188 | } |
| 189 | return *item, true |
| 190 | } |
| 191 | |
| 192 | func SetInCache(key string, item FaviconCacheItem) { |
| 193 | faviconCacheLock.Lock() |