providercache

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


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

import "extensions/field.proto";

message PutRequest {
  string id = 1;
  string payload = 2 [(io.token.proto.extensions.field.redact) = true];
}

message PutResponse {}

message GetRequest {
  string id = 1;
}

message GetResponse {
  string payload = 1 [(io.token.proto.extensions.field.redact) = true];
}

//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) {}
}