wheat-cache/storage/persisted/define.go

22 lines
295 B
Go
Raw Normal View History

2021-11-01 21:56:23 +08:00
package persisted
import (
"sync"
protobuf "google.golang.org/protobuf/proto"
)
type AOFCodec interface {
Encode(method string, m protobuf.Message) ([]byte, error)
Decode(buf []byte) (protobuf.Message, error)
}
var (
oneAOF sync.Once
sysAOF *AOF
)
const (
defaultByteIONum = 20000
)