"getFactionByChunk" one of the most called methods by many listeners.
But it iterating every time through every faction claims.
So I cached it with thread safe Guava cache.
I limit the cache 30 seconds for safety, if someone will forget to invalidate cache after updating claims.
"getFactionByChunk" one of the most called methods by many listeners. But it iterating every time through every faction claims.
So I cached it with thread safe Guava cache. I limit the cache 30 seconds for safety, if someone will forget to invalidate cache after updating claims.