com.aspire.nm.component.util.CacheItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of miniServer Show documentation
Show all versions of miniServer Show documentation
miniServer is a dajiangnan's WebFrameWork
The newest version!
package com.aspire.nm.component.util;
public class CacheItem {
private Object cacheObject;
private long timeStamp;
private long expiredTime;
CacheItem(Object obj,long expiredTime) {
this.cacheObject = obj;
this.timeStamp = System.currentTimeMillis();
this.expiredTime = expiredTime;
}
Object getCacheObject() {
return cacheObject;
}
long getTimeStamp() {
return timeStamp;
}
long getExpiredTime() {
return expiredTime;
}
}