Debian Codegraph @

cache/accessor/accessor.go

raw
1 // Copyright (c) Microsoft Corporation. All rights reserved.
2 // Licensed under the MIT License. See LICENSE in the project root for license information.
3
4 package accessor
5
6 import "context"
7
8 // Accessor accesses data storage.
9 type Accessor interface {
10 Delete(context.Context) error
11 Read(context.Context) ([]byte, error)
12 Write(context.Context, []byte) error
13 }