#NEWLINE# def _write_storage( self , writer , cmd , key , value , expiration , flags , cas_unique = None ) : #NEWLINE# #INDENT# self . _check_keys ( [ key ] ) #NEWLINE# ( encoded_value , flags ) = self . _codec . encode ( value , flags ) #NEWLINE# self . _check_value ( encoded_value ) #NEWLINE# if ( writer is not None ) : #NEWLINE# #INDENT# writer . write_bytes ( ( '%s %s %d %d %d %d\r\n%s\r\n' % ( cmd , key , flags , expiration , len ( encoded_value ) , cas_unique , encoded_value ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# writer . write_bytes ( ( '%s %s %d %d %d\r\n%s\r\n' % ( cmd , key , flags , expiration , len ( encoded_value ) , encoded_value ) ) )