mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
25 lines
378 B
Go
25 lines
378 B
Go
package diskcache
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type NoOp struct {
|
|
}
|
|
|
|
func NewNoOp() *NoOp {
|
|
return &NoOp{}
|
|
}
|
|
|
|
func (n *NoOp) Store(_ context.Context, _ string, _ []byte) error {
|
|
return nil
|
|
}
|
|
|
|
func (n *NoOp) Load(_ context.Context, _ string) (value []byte, exist bool, err error) {
|
|
return nil, false, nil
|
|
}
|
|
|
|
func (n *NoOp) Delete(_ context.Context, _ string) error {
|
|
return nil
|
|
}
|