#NEWLINE# @ property #NEWLINE# def ring( self ) : #NEWLINE# #INDENT# interval = CONF . hash_ring_reset_interval #NEWLINE# limit = ( time . time ( ) - interval ) #NEWLINE# if ( ( self . __class__ . _hash_rings is not None ) and ( self . updated_at >= limit ) ) : #NEWLINE# #INDENT# return self . __class__ . _hash_rings #NEWLINE# #UNINDENT# with self . _lock : #NEWLINE# #INDENT# if ( ( self . __class__ . _hash_rings is None ) or ( self . updated_at < limit ) ) : #NEWLINE# #INDENT# rings = self . _load_hash_rings ( ) #NEWLINE# self . __class__ . _hash_rings = rings #NEWLINE# self . updated_at = time . time ( ) #NEWLINE# #UNINDENT# return rings . __class__ . _hash_rings