why not set the cache length on the cache object?