After you dig out another, the simplest example I have found is the ir_model_data._get_id () method :
@tools.cache()
def _get_id(self, cr, uid, module, xml_id):
ids = self.search(cr, uid, [('module','=',module),('name','=', xml_id)])
if not ids:
raise ValueError('No references to %s.%s' % (module, xml_id))
return ids[0]
, , , . , update(), :
if not result3:
self._get_id.clear_cache(cr.dbname, uid, module, xml_id)
, ( ).
. , .