- 授权协议: 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");
}
ACM国际大学生程序设计竞赛题解
赵端阳//袁鹤 / 电子工业 / 2010-6 / 38.00元
《ACM国际大学生程序设计竞赛题解(1)》可以作为高等院校有关专业的本科和大专学生参加国际大学生程序设计竞赛的辅导教材,或者作为高等院校数据结构、C/C++程序设计或算法设计与分析等相关课程的教学参考书。随着各大专院校参加ACM/ICPC热情的高涨,迫切需要有关介绍ACM国际大学生程序设计竞赛题解的书籍。《ACM国际大学生程序设计竞赛题解(1)》根据浙江大学在线题库的前80题,进行了解答(个别特别......一起来看看 《ACM国际大学生程序设计竞赛题解》 这本书的介绍吧!
