cache

package
v1.51.1-0...-e186a28 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: MIT Imports: 2 Imported by: 0

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