def get_config(self):
    c = merge_dict(self.get_default_config(), {'pickle_protocol': self.pickle_protocol})
    if self.cache_element:
        merge_dict(c['cache_element'], plugin.to_plugin_config(self.cache_element))
    return c
def get_config(self):
    c = merge_dict(self.get_default_config(), {'pickle_protocol': self.pickle_protocol})
    if self.cache_element:
        merge_dict(c['cache_element'], plugin.to_plugin_config(self.cache_element))
    return c