def build_full_cache(items, id_key='id', ids=None):
 return dict(((item['id'], item) for item in items))

def build_full_cache ( items , id_key = 'id' , ids = None ) : return dict ( ( ( item [ 'id' ] , item ) for item in items ) )
uses list of items retrieved from building the topic tree to create an item cache with look up keys .