MCPcopy Index your code
hub / github.com/willnorris/imageproxy / Set

Method Set

cmd/imageproxy/main.go:140–154  ·  view source on GitHub ↗
(value string)

Source from the content-addressed store, hash-verified

138}
139
140func (tc *tieredCache) Set(value string) error {
141 for _, v := range strings.Fields(value) {
142 c, err := parseCache(v)
143 if err != nil {
144 return err
145 }
146
147 if tc.Cache == nil {
148 tc.Cache = c
149 } else {
150 tc.Cache = twotier.New(tc.Cache, c)
151 }
152 }
153 return nil
154}
155
156// parseCache parses c returns the specified Cache implementation.
157func parseCache(c string) (imageproxy.Cache, error) {

Callers

nothing calls this directly

Calls 1

parseCacheFunction · 0.70

Tested by

no test coverage detected