- 授权协议: Apache
- 开发语言: Java
- 操作系统: 跨平台
- 软件首页: http://git.oschina.net/397713572/tgcache
- 软件文档: http://git.oschina.net/397713572/tgcache/wikis/home
软件介绍
TgCache 天狗文件缓存
缓存是解决应用性能的一直方式,JAVA也自带了缓存JSR-107标准,同时也有常用的JAVA缓存有很多如Ehcache、OSCache、Apache Commons JCS ……很多缓存架构(也支持基础)。 TgCache是一个JAVA缓存工具,出发点只是想做一个简单的文件缓存,用于JAVA客户端AWT、SWING,JAVAFX一些客户端缓存。由于在常见的JAVA缓存中大多数是内存缓存,而TgCache就是一个文件缓存。
CacheEngine engine = new TgCacheEngine();//创建缓存
engine.add("name", "tngou");//存在 默认的储存库为 default
engine.add("table", "time", new Date()); //缓存库 table ,key=tile,value= 时间对象
CacheEngine engine1 = new TgCacheEngine();
Object name = engine1.get("name"); //取值
Object time = engine1.get("table", "time"); //取值
System.err.println(name+":"+time);
engine.clear("table");//清除缓存
engine.stop(); //关闭如何使用
下载TgCache.x.x.jar 下载TgCache依赖库 apache commons-io
引入项目
分别把TgCache.x.x.jar、commons-io-x.x.jar 导入到项目中。 注意:TgCache.x.x.jar是基于JDK8编译的,如果需要低版本的,可以自己下载源码编译。
使用文档
Impractical Python Projects
Lee Vaughan / No Starch Press / 2018-11 / USD 29.95
Impractical Python Projects picks up where the complete beginner books leave off, expanding on existing concepts and introducing new tools that you’ll use every day. And to keep things interesting, ea......一起来看看 《Impractical Python Projects》 这本书的介绍吧!
