1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 10:08:15 -05:00
v2fly/features/extension/storage.go

16 lines
349 B
Go
Raw Normal View History

2021-06-24 11:28:08 -04:00
package extension
import (
"context"
2021-10-28 06:34:19 -04:00
"github.com/v2fly/v2ray-core/v5/features"
2021-06-24 11:28:08 -04:00
)
type PersistentStorageEngine interface {
features.Feature
PersistentStorageEngine()
Put(ctx context.Context, key []byte, value []byte) error
Get(ctx context.Context, key []byte) ([]byte, error)
List(ctx context.Context, keyPrefix []byte) ([][]byte, error)
}