#NEWLINE# def __setitem__( self , key , value ) : #NEWLINE# #INDENT# with self . mutex : #NEWLINE# #INDENT# if ( self . limit and ( len ( self . data ) >= self . limit ) ) : #NEWLINE# #INDENT# self . data . pop ( next ( iter ( self . data ) ) ) #NEWLINE# #UNINDENT# self . data [ key ] = value