23 lines
415 B
Go
23 lines
415 B
Go
|
package structure
|
||
|
|
||
|
type CacheValue interface {
|
||
|
LengthByte() int64
|
||
|
}
|
||
|
|
||
|
type ParseComm func(comm interface{}) ([]string, error)
|
||
|
|
||
|
type CacheStruct interface {
|
||
|
SizeByte() int64
|
||
|
|
||
|
// TODO RollBack 事务相关, V2 实现
|
||
|
RollBack() error
|
||
|
// Begin 事务相关, V2 实现
|
||
|
Begin() error
|
||
|
// Comment 事务相关, V2 实现
|
||
|
Comment() error
|
||
|
|
||
|
ParseCommend(comm ParseComm) ([]string, error)
|
||
|
|
||
|
Encode() ([]byte, error)
|
||
|
}
|