MCPcopy
hub / github.com/filebrowser/filebrowser / FileCache

Interface FileCache

http/preview.go:31–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31type FileCache interface {
32 Store(ctx context.Context, key string, value []byte) error
33 Load(ctx context.Context, key string) ([]byte, bool, error)
34 Delete(ctx context.Context, key string) error
35}
36
37func previewHandler(imgSvc ImgService, fileCache FileCache, enableThumbnails, resizePreview bool) handleFunc {
38 return withUser(func(w http.ResponseWriter, r *http.Request, d *data) (int, error) {

Callers 15

createPreviewFunction · 0.65
handleImagePreviewFunction · 0.65
CompleteMethod · 0.65
share.goFile · 0.65
users.goFile · 0.65
delThumbsFunction · 0.65
LoadMethod · 0.95
downloadFunction · 0.80
postResourcesFunction · 0.80
downloadFunction · 0.80
StoreMethod · 0.95
DeleteMethod · 0.95

Implementers 2

NoOpdiskcache/noop_cache.go
FileCachediskcache/file_cache.go

Calls

no outgoing calls

Tested by

no test coverage detected