Class SimpleDnsCache
A simple in-memory DNS cache that stores resolved DNS entries with TTL-based expiration.
Inherited Members
Namespace: Akka.IO
Assembly: Akka.dll
Syntax
public class SimpleDnsCache : DnsBase
Constructors
| Edit this page View SourceSimpleDnsCache()
Initializes a new instance of the SimpleDnsCache.
Declaration
public SimpleDnsCache()
Methods
| Edit this page View SourceCached(string)
Gets a cached DNS resolution result for the specified hostname.
Declaration
public override Dns.Resolved Cached(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The hostname to lookup in the cache. |
Returns
Type | Description |
---|---|
Dns.Resolved | The cached DNS resolution result, or null if not found or expired. |
Overrides
| Edit this page View SourceCleanUp()
Cleans up expired entries from the cache.
Declaration
public void CleanUp()
Clock()
Gets the current clock time in milliseconds since cache initialization.
Declaration
protected virtual long Clock()
Returns
Type | Description |
---|---|
long | The current clock time in milliseconds. |