cache

package
v1.50.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2019 License: MIT Imports: 2 Imported by: 62

Documentation

Overview

Package cache implements the Fs cache

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear()

Clear removes everything from the cahce

func Get

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

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

func Put(fsString string, f fs.Fs)

Put puts an fs.Fs named fsString into the cache

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL