Key format: "scaled:" + bref + ":" + width "x" + height where bref is the blobref of the unscaled image.
(bref string, width int, height int)
| 169 | // Key format: "scaled:" + bref + ":" + width "x" + height |
| 170 | // where bref is the blobref of the unscaled image. |
| 171 | func cacheKey(bref string, width int, height int) string { |
| 172 | return fmt.Sprintf("scaled:%v:%dx%d:tv%v", bref, width, height, images.ThumbnailVersion()) |
| 173 | } |
| 174 | |
| 175 | // ScaledCached reads the scaled version of the image in file, |
| 176 | // if it is in cache and writes it to buf. |
no test coverage detected