ClearAll will delete all item in runtime cache.
()
| 217 | |
| 218 | // ClearAll will delete all item in runtime cache. |
| 219 | func (ca *RuntimeCache) ClearAll() error { |
| 220 | ca.Lock() |
| 221 | defer ca.Unlock() |
| 222 | ca.items = new(sync.Map) |
| 223 | return nil |
| 224 | } |
| 225 | |
| 226 | func (ca *RuntimeCache) gc() { |
| 227 | for { |
no outgoing calls