forked from p93542168/wheat-cache
109 lines
1.4 KiB
Protocol Buffer
109 lines
1.4 KiB
Protocol Buffer
syntax = "proto3";
|
||
import "base.proto";
|
||
option go_package = "pkg/proto";
|
||
|
||
message LindexRequest {
|
||
BaseKey key = 1;
|
||
int32 index = 2;
|
||
}
|
||
|
||
message LindexResponse {
|
||
string result = 1;
|
||
}
|
||
|
||
message LlenRequest {
|
||
BaseKey key = 1;
|
||
}
|
||
|
||
message LlenResponse {
|
||
int32 length = 1;
|
||
}
|
||
|
||
message LpopRequest {
|
||
BaseKey key = 1;
|
||
int32 count = 2;
|
||
}
|
||
|
||
message LpopResponse {
|
||
repeated string results = 1;
|
||
}
|
||
|
||
message LpushRequest {
|
||
BaseKey key = 1;
|
||
repeated string values = 2;
|
||
}
|
||
|
||
message LpushResponse {
|
||
}
|
||
|
||
message LpushxRequest {
|
||
BaseKey key = 1;
|
||
repeated string values = 2;
|
||
}
|
||
|
||
message LpushxResponse {
|
||
}
|
||
|
||
message LrangeRequest {
|
||
BaseKey key = 1;
|
||
int32 start = 2;
|
||
int32 end = 3;
|
||
}
|
||
|
||
message LrangeResponse {
|
||
repeated string values = 2;
|
||
}
|
||
|
||
message LremRequest {
|
||
BaseKey key = 1;
|
||
// count > 0 头搜索,count < 0 尾搜索
|
||
int32 count = 2;
|
||
string value = 3;
|
||
}
|
||
|
||
message LremResponse {
|
||
int32 count = 1;
|
||
}
|
||
|
||
message LsetRequest {
|
||
BaseKey key = 1;
|
||
int32 index = 2;
|
||
string value = 3;
|
||
}
|
||
|
||
message LsetResponse {
|
||
}
|
||
|
||
message RpopRequest {
|
||
BaseKey key = 1;
|
||
int32 count = 2;
|
||
}
|
||
|
||
message RpopResponse {
|
||
}
|
||
|
||
message LtrimRequest {
|
||
BaseKey key = 1;
|
||
int32 start = 2;
|
||
int32 end = 3;
|
||
}
|
||
|
||
message LtrimResponse {
|
||
}
|
||
|
||
message RpushRequest {
|
||
BaseKey key = 1;
|
||
repeated string values = 2;
|
||
}
|
||
|
||
message RpushResponse {
|
||
}
|
||
|
||
message RpushxRequest {
|
||
BaseKey key = 1;
|
||
repeated string values = 2;
|
||
}
|
||
|
||
message RpushxResponse {
|
||
}
|