MCPcopy Create free account
hub / github.com/MertJSX/folderhost / Delete

Method Delete

utils/cache/delete.go:3–7  ·  view source on GitHub ↗
(key KeyType)

Source from the content-addressed store, hash-verified

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

Callers 9

mainFunction · 0.80
CheckAuthFunction · 0.80
WatcherDestroyerFunction · 0.80
RemoveUserFunction · 0.80
EditUserFunction · 0.80
ChangeUserPasswordFunction · 0.80
DownloadFunction · 0.80
LogoutFunction · 0.80
TestCache_DeleteFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestCache_DeleteFunction · 0.64