forked from p93542168/wheat-cache
feat(dao): update interface
This commit is contained in:
parent
dab21a4ebc
commit
1f85847243
|
@ -6,26 +6,26 @@ package dao
|
||||||
import "gitee.com/timedb/wheatCache/pkg/proto"
|
import "gitee.com/timedb/wheatCache/pkg/proto"
|
||||||
|
|
||||||
type Interface interface {
|
type Interface interface {
|
||||||
LIndex(*proto.BaseKey, int32) (string, error)
|
LIndex(*proto.BaseKey, int32) (*proto.LIndexResponse, error)
|
||||||
LLen(*proto.BaseKey) (int32, error)
|
LLen(*proto.BaseKey) (*proto.LLenResponse, error)
|
||||||
LPop(*proto.BaseKey, int32) ([]string, error)
|
LPop(*proto.BaseKey, int32) (*proto.LPopResponse, error)
|
||||||
LPush(*proto.BaseKey, []string) error
|
LPush(*proto.BaseKey, []string) (*proto.LPushResponse, error)
|
||||||
LPushX(*proto.BaseKey, []string) error
|
LPushX(*proto.BaseKey, []string) (*proto.LPushXResponse, error)
|
||||||
LRange(*proto.BaseKey, int32, int32) ([]string, error)
|
LRange(*proto.BaseKey, int32, int32) (*proto.LRangeResponse, error)
|
||||||
LRem(*proto.BaseKey, int32, string) (int32, error)
|
LRem(*proto.BaseKey, int32, string) (*proto.LRemResponse, error)
|
||||||
LSet(*proto.BaseKey, int32, string) error
|
LSet(*proto.BaseKey, int32, string) (*proto.LSetResponse, error)
|
||||||
RPop(*proto.BaseKey, int32) ([]string, error)
|
RPop(*proto.BaseKey, int32) (*proto.RPopResponse, error)
|
||||||
LTrim(*proto.BaseKey, int32, int32) error
|
LTrim(*proto.BaseKey, int32, int32) (*proto.LTrimResponse, error)
|
||||||
RPush(*proto.BaseKey, []string) error
|
RPush(*proto.BaseKey, []string) (*proto.RPushResponse, error)
|
||||||
RPushX(*proto.BaseKey, []string) error
|
RPushX(*proto.BaseKey, []string) (*proto.RPushXResponse, error)
|
||||||
Set(*proto.BaseKey, string) (string, error)
|
Set(*proto.BaseKey, string) (*proto.SetResponse, error)
|
||||||
Get(*proto.BaseKey) (string, error)
|
Get(*proto.BaseKey) (*proto.GetResponse, error)
|
||||||
Add(*proto.BaseKey, int32) (string, error)
|
Add(*proto.BaseKey, int32) (*proto.AddResponse, error)
|
||||||
Reduce(*proto.BaseKey, int32) (string, error)
|
Reduce(*proto.BaseKey, int32) (*proto.ReduceResponse, error)
|
||||||
Setnx(*proto.BaseKey, string) error
|
Setnx(*proto.BaseKey, string) (*proto.SetnxResponse, error)
|
||||||
SetBit(*proto.BaseKey, bool, int32) error
|
SetBit(*proto.BaseKey, bool, int32) (*proto.SetBitResponse, error)
|
||||||
GetBit(*proto.BaseKey, int32) (bool, error)
|
GetBit(*proto.BaseKey, int32) (*proto.GetBitResponse, error)
|
||||||
GetRange(*proto.BaseKey, int32, int32) (string, error)
|
GetRange(*proto.BaseKey, int32, int32) (*proto.GetRangeResponse, error)
|
||||||
GetSet(*proto.BaseKey, string) (string, error)
|
GetSet(*proto.BaseKey, string) (*proto.GetSetResponse, error)
|
||||||
StrLen(*proto.BaseKey) (int32, error)
|
StrLen(*proto.BaseKey) (*proto.StrLenResponse, error)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue