Giriş
Şu satırı dahil ederiz
import com.hazelcast.internal.nearcache.impl.NearCache;
Kalıtım şöyle
NearCache
DefaultNearCache
Near-Cache Nedir?
Açıklaması şöyle. Near-Cache hem client hem de member tarafından kullanılabilir
Hazelcast has a useful feature called near-cache. Basically, it allows each application node to hold a local copy of the remote cached object (e.g. Map) without the pain of managing the relationship between the local object and the remote one.
It saves the network latency and the serialization/deserialization processing in read operations.
Bir başka açıklama şöyle
When an application request data from the cache, it first looks for the data in the near-cache. If it doesn’t find the data, we call it a cache miss. In this case, the data is requested from the remote cache cluster and added to the near-cache. When the application wants to read this data again, it can find it in the near-cache. We call this a cache hit.
Şeklen şöyle
getNearCacheStats metodu
NearCacheStats nesnesi döner
Hiç yorum yok:
Yorum Gönder