Add support to delete a portion of the cacheSize when the cacheSize is reached.