#NEWLINE# def lindex( self , key , index ) : #NEWLINE# #INDENT# '\n        @param key Redis key\n        @param index index of element\n\n        Return the specified element of the list stored at the specified\n        key. 0 is the first element, 1 the second and so on. Negative\n        indexes are supported, for example -1 is the last element, -2 the\n        penultimate and so on.\n        If the value stored at key is not of list type an error is\n        returned. If the index is out of range an empty string is returned.\n\n        @note Time complexity: O(n) (with n being the length of the list)\n        Note that even if the average time complexity is O(n) asking for\n        the first or the last element of the list is O(1).\n        ' #NEWLINE# self . _send ( 'LINDEX' , index , index ) #NEWLINE# return self . getResponse ( )