mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-04-30 23:36:24 +02:00
12 lines
392 B
Go
12 lines
392 B
Go
package cache
|
|
|
|
import "github.com/willnorris/go-imageproxy/data"
|
|
|
|
// NopCache provides a no-op cache implementation that doesn't actually cache anything.
|
|
var NopCache = new(nopCache)
|
|
|
|
type nopCache struct{}
|
|
|
|
func (c nopCache) Get(u string) (*data.Image, bool) { return nil, false }
|
|
func (c nopCache) Save(image *data.Image) {}
|
|
func (c nopCache) Delete(u string) {}
|