@@ -0,0 +1,1103 @@
+package com.glaf.core.cache;%0A%0Apublic class CacheItem implements java.io.Serializable %7B%0A%09private static final long serialVersionUID = 1L;%0A%09protected String key;%0A%09protected long lastModified;%0A%09protected int size;%0A%0A%09public CacheItem() %7B%0A%0A%09%7D%0A%0A%09@Override%0A%09public boolean equals(Object obj) %7B%0A%09%09if (this == obj)%0A%09%09%09return true;%0A%09%09if (obj == null)%0A%09%09%09return false;%0A%09%09if (getClass() != obj.getClass())%0A%09%09%09return false;%0A%09%09CacheItem other = (CacheItem) obj;%0A%09%09if (key == null) %7B%0A%09%09%09if (other.key != null)%0A%09%09%09%09return false;%0A%09%09%7D else if (!key.equals(other.key))%0A%09%09%09return false;%0A%09%09return true;%0A%09%7D%0A%0A%09public String getKey() %7B%0A%09%09return key;%0A%09%7D%0A%0A%09public long getLastModified() %7B%0A%09%09return lastModified;%0A%09%7D%0A%0A%09public int getSize() %7B%0A%09%09return size;%0A%09%7D%0A%0A%09@Override%0A%09public int hashCode() %7B%0A%09%09final int prime = 31;%0A%09%09int result = 1;%0A%09%09result = prime * result + ((key == null) ? 0 : key.hashCode());%0A%09%09return result;%0A%09%7D%0A%0A%09public void setKey(String key) %7B%0A%09%09this.key = key;%0A%09%7D%0A%0A%09public void setLastModified(long lastModified) %7B%0A%09%09this.lastModified = lastModified;%0A%09%7D%0A%0A%09public void setSize(int size) %7B%0A%09%09this.size = size;%0A%09%7D%0A%0A%7D%0A

add cache item