class RLS::Memory::Player
- RLS::Memory::Player
- Reference
- Object
Overview
Cache for Player
objects. Player objects are considered valid until
their expiry time of Player#next_update
is reached.
Defined in:
rls/cache.crInstance Method Summary
-
#cache(player : RLS::Player)
Stores a player in the cache
-
#prune
Prunes the cache of expired players
-
#resolve(id : String, platform : RLS::Platform) : RLS::Player | Nil
Resolves a player from the cache.
Instance Method Detail
Resolves a player from the cache. Returns nil
if the stored
player data is due for an update.