mirror of
https://github.com/rclone/rclone.git
synced 2025-08-19 09:52:05 +02:00
fs/cache: add Entries() for finding how many entries in the fscache #4811
This commit is contained in:
5
fs/cache/cache.go
vendored
5
fs/cache/cache.go
vendored
@@ -128,3 +128,8 @@ func Put(fsString string, f fs.Fs) {
|
||||
func Clear() {
|
||||
c.Clear()
|
||||
}
|
||||
|
||||
// Entries returns the number of entries in the cache
|
||||
func Entries() int {
|
||||
return c.Entries()
|
||||
}
|
||||
|
Reference in New Issue
Block a user