mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-12 03:05:14 +00:00
add list keys to cache (#352)
* add list keys to cache * add list keys example
This commit is contained in:
10
cache/proto/cache.proto
vendored
10
cache/proto/cache.proto
vendored
@@ -10,6 +10,7 @@ service Cache {
|
||||
rpc Delete(DeleteRequest) returns (DeleteResponse) {}
|
||||
rpc Increment(IncrementRequest) returns (IncrementResponse) {}
|
||||
rpc Decrement(DecrementRequest) returns (DecrementResponse) {}
|
||||
rpc ListKeys(ListKeysRequest) returns (ListKeysResponse) {}
|
||||
}
|
||||
|
||||
// Get an item from the cache by key. If key is not found, an empty response is returned.
|
||||
@@ -82,3 +83,12 @@ message DecrementResponse {
|
||||
// The new value
|
||||
int64 value = 2;
|
||||
}
|
||||
|
||||
// List all the available keys
|
||||
message ListKeysRequest {
|
||||
|
||||
}
|
||||
|
||||
message ListKeysResponse {
|
||||
repeated string keys = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user