MonsterChenzhuo commented on code in PR #1910:
URL: 
https://github.com/apache/incubator-streampark/pull/1910#discussion_r1007990499


##########
streampark-flink/streampark-flink-kubernetes/src/main/scala/org/apache/streampark/flink/kubernetes/FlinkTrackController.scala:
##########
@@ -236,3 +240,19 @@ object MetricCache {
   def build(): MetricCache = new MetricCache()
 
 }
+
+class ArchivesCache {
+  def put(k: String, v: String): Unit = cache.put(k, v)
+
+  def get(k: String): String = cache.getIfPresent(k)
+
+  def asMap(): Map[String, String] = cache.asMap().toMap
+
+  def cleanUp(): Unit = cache.cleanUp()
+
+  val cache: Cache[String, String] = Caffeine.newBuilder.build()

Review Comment:
   The underlying Caffeine is map. i am using the logic of the previous cache 
here. Cache expiration I added this: 
   def invalidate(key: ClusterKey): Unit = cache.invalidate(key) 
   to control.
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to