(key string)
| 10 | var c = cache.New(cache.NoExpiration, 10*time.Minute) |
| 11 | |
| 12 | func GetProxies(key string) proxy.ProxyList { |
| 13 | result, found := c.Get(key) |
| 14 | if found { |
| 15 | return result.(proxy.ProxyList) |
| 16 | } |
| 17 | return nil |
| 18 | } |
| 19 | |
| 20 | func SetProxies(key string, proxies proxy.ProxyList) { |
| 21 | c.Set(key, proxies, cache.NoExpiration) |
no test coverage detected