echoip/cache/null.go

16 lines
278 B
Go

package cache
import (
"context"
)
type Null struct{}
func (nc *Null) Get(ctx context.Context, ip string, cachedResponse *CachedResponse) error {
return nil
}
func (nc *Null) Set(ctx context.Context, ip string, response CachedResponse, cacheTtl int) error {
return nil
}