java - Caching objects for later reuse to avoid persistence to recreate them -


i have idea of caching objects have been created slight performance gain. types of objects i'm thinking of stuff player objects in game. think beneficial have cached copy of player ready avoid io/persistence.

the idea sounds great have issues(?) guess idea. player data stored on sql database. if make change database, cached copy on server different. run task check objects up-to-date there no point in initial idea.

could have advice on should do?


Comments

Popular posts from this blog

go - serving up pdfs using golang -

python - Best design pattern for collection of objects -

sharepoint online - C# CSOM SPView ListItemCollection did not update after I add new field in the SP view -