MCPcopy
hub / github.com/filebrowser/filebrowser / filePathKey

Method filePathKey

http/upload_cache_redis.go:38–40  ·  view source on GitHub ↗
(filePath string)

Source from the content-addressed store, hash-verified

36}
37
38func (c *redisUploadCache) filePathKey(filePath string) string {
39 return "filebrowser:upload:" + filePath
40}
41
42func (c *redisUploadCache) Register(filePath string, fileSize int64) {
43 err := c.client.Set(context.Background(), c.filePathKey(filePath), fileSize, uploadCacheTTL).Err()

Callers 4

RegisterMethod · 0.95
CompleteMethod · 0.95
GetLengthMethod · 0.95
TouchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected