Chuyển đến nội dung chính
Bộ nhớ đệm tham chiếu và so sánh cá thể.

Hàm có sẵn

cache.invalidate

Xoa muc registry Instance cache da duoc cache cho Instance duoc cung cap.

cache.iscached

Tra ve Instance duoc cung cap co muc non-nil trong Instance cache hay khong.

cache.replace

Sets the cached Instance entry for one Instance to another Instance.

cloneref

Push mot tham chieu Instance moi cho cung reference Instance ben duoi va tra ve no.

compareinstances

So sanh cac gia tri reference Instance noi bo duoc luu trong hai gia tri Instance object.