Java Guava combination of Multimap and Cache

后端 未结 3 1147
北恋
北恋 2021-02-13 13:28

Is there any such thing as a combination of Guava\'s Cache and Multimap functionality available? Essentially, I need a collection where entries expire

3条回答
  •  遇见更好的自我
    2021-02-13 13:54

    As long as you're talking about Cache and not LoadingCache you could pass the Cache.asMap() view into Multimaps.newMultimap.

提交回复
热议问题