Files
opencloud/services/webdav/pkg/thumbnail/cache/noop.go
T

13 lines
241 B
Go

package cache
// NoopCache always returns a cache miss and discards puts.
type NoopCache struct{}
func (NoopCache) Get(_ string) ([]byte, error) {
return nil, ErrCacheMiss
}
func (NoopCache) Put(_ string, _ []byte) error {
return nil
}