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

Method Entries

lib/cache/cache.go:250–255  ·  view source on GitHub ↗

Entries returns the number of entries in the cache

()

Source from the content-addressed store, hash-verified

248
249// Entries returns the number of entries in the cache
250func (c *Cache) Entries() int {
251 c.mu.Lock()
252 entries := len(c.cache)
253 c.mu.Unlock()
254 return entries
255}
256
257// SetFinalizer sets a function to be called when a value drops out of the cache
258func (c *Cache) SetFinalizer(finalize func(any)) {

Callers 3

TestEntriesFunction · 0.45
TestCacheRenameFunction · 0.45
EntriesFunction · 0.45

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by 2

TestEntriesFunction · 0.36
TestCacheRenameFunction · 0.36