From f150be842d3603d85d1e86aba3e3af11d86cc29a Mon Sep 17 00:00:00 2001 From: listen <494177603@qq.com> Date: Fri, 26 Nov 2021 10:31:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0SetNx=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- redis.proto | 1 + 1 file changed, 1 insertion(+) diff --git a/redis.proto b/redis.proto index 2780899..84b914c 100644 --- a/redis.proto +++ b/redis.proto @@ -107,6 +107,7 @@ message LLenRequest{ service RedisService { rpc Get (GetRequest) returns (GetStringResponse); // 使用key查询 rpc Set (SetRequest) returns (SetResponse); + rpc SetNx (SetRequest) returns (DelResponse) // 如果不存在则设置 rpc Del (DelRequest) returns (DelResponse); rpc HGet (HGetRequest) returns (GetStringResponse); // 使用hash key查询 rpc HSet (HSetRequest) returns (HSetResponse);