(key KeyType)
| 1 | package cache |
| 2 | |
| 3 | func (c *Cache[KeyType, DataType]) Delete(key KeyType) { |
| 4 | c.Mutex.Lock() |
| 5 | defer c.Mutex.Unlock() |
| 6 | delete(c.Items, key) |
| 7 | } |
| 8 | |
| 9 | func (c *Cache[KeyType, DataType]) DeleteDirCacheItemsByPath(path string) { |
| 10 | c.Mutex.Lock() |
no outgoing calls