providercache

io.token.proto.providercache /external/src/main/proto/providerapi/providercache.proto


syntax = "proto3";
package io.token.proto.providercache;

message PutRequest {
  string id = 1;
  string payload = 2;
}

message PutResponse {}

message GetRequest {
  string id = 1;
}

message GetResponse {
  string payload = 1;
}

//The default-expiration time is set to 1 day in common.cnf file under
//provider-cache-cleanup configuration.
service ProviderCacheService {
  rpc Put (PutRequest) returns (PutResponse) {}
  rpc Get (GetRequest) returns (GetResponse) {}
}