Sets the cacheValidator for key
cacheValidator
key
void setCacheValidator<O>( String key, bool Function(Object o) cacheValidator, ) => _cacheValidators[key] = cacheValidator;