'Adds the given serialized_data for the given BlockStructureModel
to the cache.'

def _add_to_cache(self, serialized_data, bs_model):

    cache_key = self._encode_root_cache_key(bs_model)
    self._cache.set(cache_key, serialized_data, timeout=config.cache_timeout_in_seconds())
    logger.info('BlockStructure:    Added    to    cache;    %s,    size:    %d', bs_model, len(serialized_data))
