#NEWLINE# def __getitem__( self , key ) : #NEWLINE# #INDENT# if ( key in self . cache ) : #NEWLINE# #INDENT# return self . cache [ key ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# value = self . mapping [ key ] #NEWLINE# self . cache [ key ] = value #NEWLINE# return value