#NEWLINE# def set( self , prefix , key , value , cb ) : #NEWLINE# #INDENT# ' Set key: prefix+key value: value\n        ' #NEWLINE# _log . debug ( ( 'Set key %s, value %s' % ( ( prefix + key ) , value ) ) ) #NEWLINE# value = ( self . coder . encode ( value ) if value else value ) #NEWLINE# if ( ( prefix + key ) in self . localstore_sets ) : #NEWLINE# #INDENT# del self . localstore_sets [ ( prefix + key ) ] #NEWLINE# #UNINDENT# self . localstore [ ( prefix + key ) ] = value #NEWLINE# if self . started : #NEWLINE# #INDENT# self . storage . set ( key = ( prefix + key ) , value = value , cb = CalvinCB ( func = self . set_cb , org_key = key , org_value = value , org_cb = cb ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if cb : #NEWLINE# #INDENT# async . DelayedCall ( 0 , cb , key = key , value = True )