import "github.com/ncw/rclone/fs/cache"
Package cache implements the Fs cache
Canonicalize looks up fsString in the mapping from user supplied names to canonical names and return the canonical form
func Clear()
Clear removes everything from the cache
Get gets an fs.Fs named fsString either from the cache or creates it afresh
func GetFn(ctx context.Context, fsString string, create func(ctx context.Context, fsString string) (fs.Fs, error)) (f fs.Fs, err error)
GetFn gets an fs.Fs named fsString either from the cache or creates it afresh with the create function
Pin f into the cache until Unpin is called
PinUntilFinalized pins f into the cache until x is garbage collected
This calls runtime.SetFinalizer on x so it shouldn't have a finalizer already.
Put puts an fs.Fs named fsString into the cache
Unpin f from the cache
Package cache imports 5 packages (graph). Updated 2021-01-23. Refresh now. Tools for package owners.