Skip to content

Commit c79f0fa

Browse files
committed
Added new cache config class
1 parent 46c1d7a commit c79f0fa

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/*
2+
* Copyright 2025 Conductor Authors.
3+
* <p>
4+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
5+
* the License. You may obtain a copy of the License at
6+
* <p>
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
* <p>
9+
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
10+
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
11+
* specific language governing permissions and limitations under the License.
12+
*/
13+
package com.netflix.conductor.common.metadata.workflow;
14+
15+
import com.netflix.conductor.annotations.protogen.ProtoField;
16+
import com.netflix.conductor.annotations.protogen.ProtoMessage;
17+
18+
@ProtoMessage
19+
public class CacheConfig {
20+
21+
@ProtoField(id = 1)
22+
private String key;
23+
24+
@ProtoField(id = 2)
25+
private int ttlInSecond;
26+
27+
public String getKey() {
28+
return key;
29+
}
30+
31+
public void setKey(String key) {
32+
this.key = key;
33+
}
34+
35+
public int getTtlInSecond() {
36+
return ttlInSecond;
37+
}
38+
39+
public void setTtlInSecond(int ttlInSecond) {
40+
this.ttlInSecond = ttlInSecond;
41+
}
42+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
syntax = "proto3";
2+
package conductor.proto;
3+
4+
5+
option java_package = "com.netflix.conductor.proto";
6+
option java_outer_classname = "CacheConfigPb";
7+
option go_package = "github.com/netflix/conductor/client/gogrpc/conductor/model";
8+
9+
message CacheConfig {
10+
string key = 1;
11+
int32 ttl_in_second = 2;
12+
}

0 commit comments

Comments
 (0)