@staticmethod
def __get_options(cache, key, override_options, pool_options):
    """Gets the options for the specified key."""
    options = cache.get(key)
    if not options:
        options = pool_options.get('*').copy()
        options_form_config = pool_options.get(key)
        if options_form_config:
            options.update(options_form_config)
        cache[key] = options
    if override_options:
        options = options.copy()
        options.update(override_options)
    return options
