Search Results for

    Show / Hide Table of Contents

    Class SimpleDnsCache

    A simple in-memory DNS cache that stores resolved DNS entries with TTL-based expiration.

    Inheritance
    object
    DnsBase
    SimpleDnsCache
    Inherited Members
    DnsBase.Resolve(string, ActorSystem, IActorRef)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.IO
    Assembly: Akka.dll
    Syntax
    public class SimpleDnsCache : DnsBase

    Constructors

    | Edit this page View Source

    SimpleDnsCache()

    Initializes a new instance of the SimpleDnsCache.

    Declaration
    public SimpleDnsCache()

    Methods

    | Edit this page View Source

    Cached(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
    DnsBase.Cached(string)
    | Edit this page View Source

    CleanUp()

    Cleans up expired entries from the cache.

    Declaration
    public void CleanUp()
    | Edit this page View Source

    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.

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET