Appearance
Cache Management Functions ​
ClearCache() ​
ClearCache() → void
Manually clears all internal caches. Useful for memory management or debugging.
Parameters: None
Returns: Nothing
Example
lua
-- Clear cache when switching players or for debugging
PlayerState.ClearCache()
-- Cache will rebuild automatically on next access
local coins = PlayerState.Get("Coins")Note
Manual cache management with automatic rebuild on next access