摘要:
Ehcache学习笔记(二) 根据条件筛选缓存中的数据Ehcache提供了很方便的索引机制,有的时候我们需要根据一些其他的条件对缓存中的数据进行索引,而不是简单根据KEY来进行索引。这是实体类 没什么好说的package com.epkj.test;import java.util.Date;public class User implements java.io.Serializable { private int id; private String name; private int age; public int getAge() { ... 阅读全文
posted @ 2013-05-23 21:38
大新博客
阅读(1686)
评论(0)
推荐(0)
摘要:
Ehcache 学习笔记(一) 搭建开发环境Ehcache 官方下载地址http://ehcache.org/下载:ehcache-2.6.6-distribution.tar.gz免费下载 但是下载需要注册1 将解压开lib文件夹下面的jar文件导入到我们的项目中去,怎么导入在这里就不演示了。2 拷贝ehcache.xml 到项目的src目录下面3 编写一个基本的配置 XML 配置如下:<?xml version="1.0" encoding="UTF-8"?><ehcache xmlns:xsi="http://www.w 阅读全文
posted @ 2013-05-23 09:54
大新博客
阅读(787)
评论(0)
推荐(0)

浙公网安备 33010602011771号