Google Guava[缓存篇]

Google Guava之--cache



    com.google.guava
    guava
    26.0-jre

 
// 初始化:
private static final Cache stringCache = CacheBuilder.newBuilder()
                                            .maximumSize(1000)
                                            .expireAfterWrite(10, TimeUnit.MINUTES)
                                            .build();

你可能感兴趣的:(Google Guava[缓存篇])