Constructor for LruCache.
The maximum size of the cache, the units must match the units used in getSize.