dns-4.0.1: DNS library in Haskell
Network.DNS.Memo
data Section Source #
Constructors
Defined in Network.DNS.Memo
Methods
(==) :: Section -> Section -> Bool
(/=) :: Section -> Section -> Bool
compare :: Section -> Section -> Ordering
(<) :: Section -> Section -> Bool
(<=) :: Section -> Section -> Bool
(>) :: Section -> Section -> Bool
(>=) :: Section -> Section -> Bool
max :: Section -> Section -> Section
min :: Section -> Section -> Section
showsPrec :: Int -> Section -> ShowS
show :: Section -> String
showList :: [Section] -> ShowS
type Key = (ByteString, TYPE) Source #
type Prio = Elapsed Source #
type Entry = Either DNSError [RData] Source #
type DB = OrdPSQ Key Prio Entry Source #
type Cache = Reaper DB (Key, Prio, Entry) Source #
newCache :: Int -> IO Cache Source #
lookupCache :: Key -> Cache -> IO (Maybe (Prio, Entry)) Source #
insertCache :: Key -> Prio -> Entry -> Cache -> IO () Source #
prune :: DB -> IO (DB -> DB) Source #
copy :: RData -> RData Source #
copyOData :: OData -> OData Source #