rclone: github.com/rclone/rclone/fs/cache Index | Files

package cache

import "github.com/rclone/rclone/fs/cache"

Package cache implements the Fs cache

Index

Package Files

cache.go

func Clear Uses

func Clear()

Clear removes everything from the cahce

func Get Uses

func Get(fsString string) (f fs.Fs, err error)

Get gets a fs.Fs named fsString either from the cache or creates it afresh

func GetFn Uses

func GetFn(fsString string, create func(fsString string) (fs.Fs, error)) (f fs.Fs, err error)

GetFn gets a fs.Fs named fsString either from the cache or creates it afresh with the create function

func Put Uses

func Put(fsString string, f fs.Fs)

Put puts an fs.Fs named fsString into the cache

Package cache imports 2 packages (graph) and is imported by 32 packages. Updated 2019-09-17. Refresh now. Tools for package owners.