MCPcopy
hub / github.com/filebrowser/filebrowser / Touch

Method Touch

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

Source from the content-addressed store, hash-verified

73}
74
75func (c *redisUploadCache) Touch(filePath string) {
76 err := c.client.Expire(context.Background(), c.filePathKey(filePath), uploadCacheTTL).Err()
77 if err != nil {
78 log.Printf("failed to touch upload in redis cache: %v", err)
79 }
80}
81
82func (c *redisUploadCache) Close() {
83 c.client.Close()

Callers 1

GetLengthMethod · 0.95

Calls 1

filePathKeyMethod · 0.95

Tested by

no test coverage detected