MCPcopy Create free account
hub / github.com/corestoreio/pkg / Set

Method Set

storage/objcache/file.go:114–131  ·  view source on GitHub ↗

Set writes the values into a file by using the keys as their filename. The keys will be sha1ed. If no duration gets set, the file atime and mtime applies to 1970-01-01 which means that the content never expires. once the mtime and atime is greater than the year 1970, the expiration gets checked.

(_ context.Context, keys []string, values [][]byte, expires []time.Duration)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

getCacheFileNameMethod · 0.95
writeFileContentMethod · 0.95
LockMethod · 0.80

Tested by

no test coverage detected