#NEWLINE# def sequential_id( k , identifier ) : #NEWLINE# #INDENT# 'Map an arbitrary string identifier to a set of sequential ids' #NEWLINE# key = _key ( k ) #NEWLINE# return int ( monotonic_zadd ( keys = [ key ] , args = [ identifier ] ) )