cache

package
v1.52.3-0...-16af9ab Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2020 License: MIT Imports: 3 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 cache

func Get

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

Get gets an 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 an fs.Fs named fsString either from the cache or creates it afresh with the create function

func Pin

func Pin(f fs.Fs)

Pin f into the cache until Unpin is called

func Put

func Put(fsString string, f fs.Fs)

Put puts an fs.Fs named fsString into the cache

func Unpin

func Unpin(f fs.Fs)

Unpin f from 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