modify the len of the data in the cache