MCPcopy Create free account
hub / github.com/blobcache/blobcache / KeepAlive

Method KeepAlive

src/bccore/handles.go:76–86  ·  view source on GitHub ↗
(h blobcache.Handle, expiresAt time.Time)

Source from the content-addressed store, hash-verified

74}
75
76func (hs *handleSystem) KeepAlive(h blobcache.Handle, expiresAt time.Time) {
77 k := handleKey(h)
78 hs.mu.Lock()
79 defer hs.mu.Unlock()
80 handle, exists := hs.handles[k]
81 if !exists {
82 return
83 }
84 handle.expiresAt = expiresAt
85 hs.handles[k] = handle
86}
87
88func (hs *handleSystem) Inspect(h blobcache.Handle) (handle, bool) {
89 k := handleKey(h)

Callers

nothing calls this directly

Calls 3

handleKeyFunction · 0.85
LockMethod · 0.80
UnlockMethod · 0.80

Tested by

no test coverage detected