EconomyLite - An economy plugin for Sponge

Is there a way to decrease the time player data is cached? Or to manually clear it?

The core issue is that we use the plugin cross server and while the player is on server a, they can get money on server b. But on server a the money the player has never changes. Not even after a rejoin (there’s really no need to hold player data when they are offline. Or to hold it longer than a few minutes. That’s a massive waste of RAM) the money doesn’t update.

So while caching makes sense, I think you’re overdoing it. Or should at least provide a way to configure the caching behavior. Like for our case it doesn’t make sense to ever cache longer than a few seconds. And the additional database traffic is no issue for us.

Edit:

I can highly recommend using the caffeine LoadingCache (or maybe even AsyncLoadingCache), simply for its amazing performance and configurability. It’s also already included in Sponge if I’m not entirely mistaken.