- 授权协议: GPLv3
- 开发语言: Java
- 操作系统: 跨平台
- 软件首页: http://cache2k.org/
- 软件文档: https://cache2k.org/docs/1.0/user-guide.html
- 官方下载: https://github.com/headissue/cache2k
软件介绍
cache2k 是个成熟的性能优越的内存缓存解决方案。
Maven:
<properties>
<cache2k-version>1.0.2.Final</cache2k-version>
</properties>
<dependencies>
<dependency>
<groupId>org.cache2k</groupId>
<artifactId>cache2k-api</artifactId>
<version>${cache2k-version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.cache2k</groupId>
<artifactId>cache2k-all</artifactId>
<version>${cache2k-version}</version>
<scope>runtime</scope>
</dependency>
</dependencies>示例代码:
Cache<String, String> cache = new Cache2kBuilder<String, String>() {}
.name("routeToAirline")
.eternal(true)
.entryCapacity(100)
.build();
// populate with our favorites
cache.put("MUC-SFO", "Yeti Jet");
cache.put("SFO-LHR", "Quality Air");
cache.put("LHR-SYD", "Grashopper Lifting");
// query the cache
String route = "LHR-MUC";
if (cache.containsKey(route)) {
System.out.println("We have a favorite airline for the route " + route);
} else {
System.out.println("We don't have a favorite airline for the route " + route);
}
String airline = cache.peek(route);
if (airline != null) {
System.out.println("Let's go with " + airline);
} else {
System.out.println("You need to find one yourself");
}
数据结构与算法分析
韦斯 (Mark Allen Weiss) / 机械工业出版社 / 2009-1-1 / 55.00元
本书是国外数据结构与算法分析方面的经典教材,使用卓越的Java编程语言作为实现工具讨论了数据结构(组织大量数据的方法)和算法分析(对算法运行时间的估计)。 随着计算机速度的不断增加和功能的日益强大,人们对有效编程和算法分析的要求也不断增长。本书把算法分析与最有效率的Java程序的开发有机地结合起来,深入分析每种算法,内容全面、缜密严格,并细致讲解精心构造程序的方法。一起来看看 《数据结构与算法分析》 这本书的介绍吧!
