TheBusyBiscuit / CS-CoreLib2

This is an updated (LITE) Version of CS-CoreLib. Instead of being a hard dependency, it should be shaded instead.
MIT License
19 stars 18 forks source link

[WIP] Cache for protection lookups #182

Closed WalshyDev closed 2 years ago

WalshyDev commented 3 years ago

This implements a Guava Cache to the ProtectionManager. We have this so that we can cache what the permission is on a block for a player.

The overhead of this isn't too much as it will remove the entry if it isn't read for 5 mins (approx).

Current Issues

There are a few things to work through first though:

Definitely some feedback needed on this - @TheBusyBiscuit @md5sha256