package dns
-
dns.cache
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val empty : int -> t
val size : t -> int
val capacity : t -> int
type entry = [
| `Entry of Dns.Rr_map.b
| `No_data of [ `raw ] Domain_name.t * Dns.Soa.t
| `No_domain of [ `raw ] Domain_name.t * Dns.Soa.t
| `Serv_fail of [ `raw ] Domain_name.t * Dns.Soa.t
]
val get :
t ->
int64 ->
[ `raw ] Domain_name.t ->
'a Dns.Rr_map.key ->
(entry, [ `Cache_miss | `Cache_drop ]) result
get lru_cache timestamp request_type name
val set :
t ->
int64 ->
[ `raw ] Domain_name.t ->
'a Dns.Rr_map.key ->
rank ->
entry ->
unit
set lru_cache timestamp request_type name rank value