public class QueryCache
extends java.lang.Object
RegionResultSets. The contents of the cache
must be externally invalidated occasionally (and frequently).
This class is fully concurrent.
| Constructor and Description |
|---|
QueryCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
invalidateAll()
Invalidate the cache and clear its contents.
|
ApplicableRegionSet |
queryContains(RegionManager manager,
com.sk89q.worldedit.util.Location location)
Get from the cache a
ApplicableRegionSet if an entry exists;
otherwise, query the given manager for a result and cache it. |
public ApplicableRegionSet queryContains(RegionManager manager, com.sk89q.worldedit.util.Location location)
ApplicableRegionSet if an entry exists;
otherwise, query the given manager for a result and cache it.manager - the region managerlocation - the locationpublic void invalidateAll()