wheat-cache/pkg/structure/interface.gen.go

25 lines
490 B
Go
Raw Normal View History

package structure
type KeyBaseInterface interface {
SizeByte() int64
2021-09-25 23:38:19 +08:00
// RollBack TODO 事务相关, V2 实现
RollBack() error
// Begin 事务相关, V2 实现
Begin() error
// Comment 事务相关, V2 实现
Comment() error
Encode() ([]byte, error)
}
type StringXInterface interface {
KeyBaseInterface
2021-10-19 00:24:36 +08:00
Set(string) (string, UpdateLength)
Get() string
2021-10-19 00:24:36 +08:00
Add(int32) (string, error)
Reduce(int32) (string, error)
Setbit(int32, bool) UpdateLength
Getbit(int32) (bool, error)
}