MCPcopy Index your code
hub / github.com/rclone/rclone / addPin

Method addPin

lib/cache/cache.go:107–115  ·  view source on GitHub ↗
(key string, count int)

Source from the content-addressed store, hash-verified

105}
106
107func (c *Cache) addPin(key string, count int) {
108 c.mu.Lock()
109 entry, ok := c.cache[key]
110 if ok {
111 entry.pinCount += count
112 c.used(entry)
113 }
114 c.mu.Unlock()
115}
116
117// Pin a value in the cache if it exists
118func (c *Cache) Pin(key string) {

Callers 2

PinMethod · 0.95
UnpinMethod · 0.95

Calls 3

usedMethod · 0.95
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected