@Override
    protected void onItemEvicted(Key key, Resource<?> item) {
        if (listener != null) {
            listener.onResourceRemoved(item);
        }
    }
Constructor for LruResourceCache.

@param size The maximum size in bytes the in memory cache can use.
core/src/main/java/com/bumptech/glide/load/engine/cache/LruResourceCache.java