Commit 02d7cc76 by fukai

修复一点错误

parent 59bd9a1b
...@@ -29,7 +29,9 @@ public abstract class AbstractCache implements CacheController { ...@@ -29,7 +29,9 @@ public abstract class AbstractCache implements CacheController {
public CacheList cacheRead(CacheKey cacheKey, long keepAlive, int maxSize, int offset) { public CacheList cacheRead(CacheKey cacheKey, long keepAlive, int maxSize, int offset) {
Object o = cacheKey.getKey(); Object o = cacheKey.getKey();
String fullSizeKey = generateKey(o); String fullSizeKey = generateKey(o);
int fullSize = (int) doCacheRead(fullSizeKey); Integer fullSize = (Integer) doCacheRead(fullSizeKey);
if(fullSize == null)
fullSize = 0;
if (fullSize == 0) { if (fullSize == 0) {
try { try {
fullSize = cacheKey.getFullSize(); fullSize = cacheKey.getFullSize();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment