Periapsis / aphelion

2D spaceship mmog in java with an authoritative server model. Inspired by subspace.
GNU Affero General Public License v3.0
10 stars 2 forks source link

Asset cache expiration #49

Open Joris-van-der-Wel opened 11 years ago

Joris-van-der-Wel commented 11 years ago

Old assets in the asset cache should expire somehow (https://github.com/Periapsis/aphelion/blob/master/src/main/java/aphelion/shared/resource/AssetCache.java).

Perhaps let it fill up to 100 MiB (or some user defined value) and after that start removing the asset that has not been accessed the longest.