mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-11-27 10:34:42 -05:00
13 lines
241 B
Go
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
|
|
}
|