def __getitem__(self, item):
key = get_cache_index_key(item)<EOL>cls = key[<NUM_LIT:0>]<EOL>cache_internal_key = self.__cache_index_key_map[key]<EOL>try:<EOL><INDENT>return copy.copy(self.__caches[cls][cache_internal_key])<EOL><DEDENT>except KeyError:<EOL><INDENT>self.__cache_index_key_map.pop(key, None)<EOL>raise<EOL><DEDENT>
Get cached resource, expects item to be 3-length tuple of (resource class, target key, target value)