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

Method Pin

lib/cache/cache.go:118–120  ·  view source on GitHub ↗

Pin a value in the cache if it exists

(key string)

Source from the content-addressed store, hash-verified

116
117// Pin a value in the cache if it exists
118func (c *Cache) Pin(key string) {
119 c.addPin(key, 1)
120}
121
122// Unpin a value in the cache if it exists
123func (c *Cache) Unpin(key string) {

Callers 2

TestCachePinFunction · 0.80
PinFunction · 0.80

Calls 1

addPinMethod · 0.95

Tested by 1

TestCachePinFunction · 0.64