Interface INamingSystemMappingData
- Namespace
- FishMMO.Server.Core.World.SceneServer
- Assembly
- FishMMO.Server.dll
Mapping/cache state for the naming system. Stores bounded TTL caches for direct and reverse lookups.
public interface INamingSystemMappingData : IRuntimeDataContainer, IServerComponent
Properties
CharacterIdByNameCache
Reverse cache of character identifiers keyed by lowercase character name.
LastSeenCacheTracker<string, long> CharacterIdByNameCache { get; }
Property Value
CharacterMissingByNameCache
Negative reverse-lookup cache keyed by lowercase character name.
LastSeenCacheTracker<string, byte> CharacterMissingByNameCache { get; }
Property Value
CharacterNameByIdCache
Cache of character names keyed by character identifier.
LastSeenCacheTracker<long, string> CharacterNameByIdCache { get; }
Property Value
CharacterNameByNameCache
Reverse cache of canonical character names keyed by lowercase character name.
LastSeenCacheTracker<string, string> CharacterNameByNameCache { get; }
Property Value
GuildNameByIdCache
Cache of guild names keyed by guild identifier.
LastSeenCacheTracker<long, string> GuildNameByIdCache { get; }
Property Value
Methods
SweepAllCaches(double, TimeSpan, int, int)
Sweeps all five caches with identical TTL and scan parameters.
void SweepAllCaches(double now, TimeSpan ttl, int maxScan, int maxRemove)
Parameters
nowdoubleCurrent MonotonicClock reading. Every naming cache is timed on that clock, through the trackers' monotonic overloads: a TTL is a local duration.
ttlTimeSpanEntry time-to-live.
maxScanintMaximum entries scanned per cache.
maxRemoveintMaximum entries removed per cache.