#NEWLINE# def hget( self , key , field ) : #NEWLINE# #INDENT# '\n        Returns the value associated with field in the hash stored at key.\n        ' #NEWLINE# if isinstance ( field , basestring ) : #NEWLINE# #INDENT# self . _send ( 'HGET' , key , field ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _send ( 'HMGET' , * ( [ key ] + field ) ) #NEWLINE# #UNINDENT# def post_process( values ) : #NEWLINE# #INDENT# if ( not values ) : #NEWLINE# #INDENT# return values #NEWLINE# #UNINDENT# if isinstance ( field , basestring ) : #NEWLINE# #INDENT# return { #NEWLINE# #INDENT# field : values , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# return dict ( itertools . izip ( field , values ) ) #NEWLINE# #UNINDENT# return self . getResponse ( ) . addCallback ( key )