Skip to content

Commit f463567

Browse files
committed
Add method for getting count of cached data
1 parent 58955d5 commit f463567

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/main/java/org/code13k/heets/business/ClusteredCache.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class ClusteredCache {
2020
private static final Logger mLogger = LoggerFactory.getLogger(ClusteredCache.class);
2121

2222
// Const
23-
private static final String NAME = "Code13k-Heets-Cache-Data";
23+
private static final String NAME = "Code13k-Heets-Clustered-Cache-Data";
2424

2525
// Data
2626
private IMap<String, CacheData> mData = null;
@@ -155,4 +155,11 @@ public void onFailure(Throwable t) {
155155
}
156156
}
157157
}
158+
159+
/**
160+
* Get cached data count
161+
*/
162+
public int size(){
163+
return mData.size();
164+
}
158165
}

0 commit comments

Comments
 (0)