Tag: jboss cache

JBoss Cache和Ehcache的性能

我正在考虑使用JBoss Cache或Ehcache来实现缓存。 在查看了这两个API后,我直觉认为JBoss可能比Ehcache更高效,因为它可以将原始对象放入缓存,而Ehcache需要将数据包装在Element对象中。 我设置了一个快速的工作台,在缓存中重复插入密钥,值元组。 键和值类非常简单: 键: public class Key implements Serializable { private static final long serialVersionUID = -2124973847139523943L; private final int key; public Key(int pValue) { this.key = pValue; } public int getValue() { return this.key; } @Override public String toString() { return “Key [key=” + this.key + “]”; } } 值: public class […]