github.com/yankunsam/loki/v2@v2.6.3-0.20220817130409-389df5235c27/pkg/storage/stores/series/index/caching_index_client.proto (about)

     1  syntax = "proto3";
     2  
     3  package index;
     4  
     5  import "github.com/gogo/protobuf/gogoproto/gogo.proto";
     6  
     7  option (gogoproto.marshaler_all) = true;
     8  option (gogoproto.unmarshaler_all) = true;
     9  
    10  message CacheEntry {
    11    bytes Column = 1 [
    12      (gogoproto.customtype) = "Bytes",
    13      (gogoproto.nullable) = false
    14    ];
    15    bytes Value = 2 [
    16      (gogoproto.customtype) = "Bytes",
    17      (gogoproto.nullable) = false
    18    ];
    19  }
    20  
    21  message ReadBatch {
    22    repeated CacheEntry entries = 1 [(gogoproto.nullable) = false];
    23    string key = 2;
    24  
    25    // The time at which the key expires.
    26    int64 expiry = 3;
    27  
    28    // The number of entries; used for cardinality limiting.
    29    // entries will be empty when this is set.
    30    int32 cardinality = 4;
    31  }