- add: redis cache refresh function sets the ttl for a key
- update: session service refresh session function now just updates the ttl of the session instead of calling set
This commit is contained in:
@@ -7,7 +7,7 @@ import "common.proto";
|
||||
service SessionService {
|
||||
rpc CreateSession (CreateSessionRequest) returns (SessionResponse);
|
||||
rpc GetSession (GetSessionRequest) returns (SessionResponse);
|
||||
rpc RefreshSession (GetSessionRequest) returns (SessionResponse);
|
||||
rpc RefreshSession (GetSessionRequest) returns (RefreshSessionResponse);
|
||||
rpc DeleteSession (DeleteSessionRequest) returns (common.Empty);
|
||||
}
|
||||
|
||||
@@ -36,3 +36,7 @@ message SessionResponse {
|
||||
string ip_address = 6;
|
||||
}
|
||||
|
||||
message RefreshSessionResponse {
|
||||
bool valid = 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user