@Override
    protected int getSize(Resource<?> item) {
        return item.getSize();
    }
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