Class CacheUUIDService

java.lang.Object
com.plotsquared.core.uuid.CacheUUIDService
All Implemented Interfaces:
UUIDService, Consumer<List<UUIDMapping>>

public class CacheUUIDService extends Object implements UUIDService, Consumer<List<UUIDMapping>>
UUID service backed by a Guava Cache
  • Constructor Details

    • CacheUUIDService

      public CacheUUIDService(int size)
      Construct a new Cache UUID service with a maximum number of entries. Because it stores the mappings in two ways, the actual number of entries is two times the specified size
      Parameters:
      size - Maximum number of entries
  • Method Details