Which Java collection should I use to implement a thread-safe cache?

后端 未结 5 1539
后悔当初
后悔当初 2021-02-20 14:58

I\'m looking to implement a simple cache without doing too much work (naturally). It seems to me that one of the standard Java collections ought to suffice, with a little extra

5条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-20 15:39

    www.javolution.org has some interestig features - synchronized fast collections. In your case it worth a try as it offers also some nifty enhancements for small devices as Android ones.

提交回复
热议问题