Table of Contents

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

LastSeenCacheTracker<string, long>

CharacterMissingByNameCache

Negative reverse-lookup cache keyed by lowercase character name.

LastSeenCacheTracker<string, byte> CharacterMissingByNameCache { get; }

Property Value

LastSeenCacheTracker<string, byte>

CharacterNameByIdCache

Cache of character names keyed by character identifier.

LastSeenCacheTracker<long, string> CharacterNameByIdCache { get; }

Property Value

LastSeenCacheTracker<long, string>

CharacterNameByNameCache

Reverse cache of canonical character names keyed by lowercase character name.

LastSeenCacheTracker<string, string> CharacterNameByNameCache { get; }

Property Value

LastSeenCacheTracker<string, string>

GuildNameByIdCache

Cache of guild names keyed by guild identifier.

LastSeenCacheTracker<long, string> GuildNameByIdCache { get; }

Property Value

LastSeenCacheTracker<long, string>

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

now double

Current MonotonicClock reading. Every naming cache is timed on that clock, through the trackers' monotonic overloads: a TTL is a local duration.

ttl TimeSpan

Entry time-to-live.

maxScan int

Maximum entries scanned per cache.

maxRemove int

Maximum entries removed per cache.