Skip to content

Commit

Permalink
allow subclasses to read cache entry count.
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=165002367
  • Loading branch information
loran authored and sjudd committed Aug 18, 2017
1 parent 7069a74 commit a2a695f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions library/src/main/java/com/bumptech/glide/util/LruCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ protected int getSize(Y item) {
return 1;
}

/**
* Returns the number of entries stored in cache.
*/
protected int getCount() {
return cache.size();
}

/**
* A callback called whenever an item is evicted from the cache. Subclasses can override.
*
Expand Down

0 comments on commit a2a695f

Please sign in to comment.