forked from p93542168/wheat-cache
25 lines
526 B
Go
25 lines
526 B
Go
package structure
|
|
|
|
type KeyBaseInterface interface {
|
|
SizeByte() int64
|
|
|
|
// RollBack TODO 事务相关, V2 实现
|
|
RollBack() error
|
|
// Begin 事务相关, V2 实现
|
|
Begin() error
|
|
// Comment 事务相关, V2 实现
|
|
Comment() error
|
|
|
|
Encode() ([]byte, error)
|
|
}
|
|
|
|
type StringXInterface interface {
|
|
KeyBaseInterface
|
|
Set(val string) (string, UpdateLength)
|
|
Get() string
|
|
Add(renewal int32) (string, error)
|
|
Reduce(renewal int32) (string, error)
|
|
Setbit(offer int32, val bool) UpdateLength
|
|
Getbit(offer int32) (bool, error)
|
|
}
|