-
Notifications
You must be signed in to change notification settings - Fork 227
Expand file tree
/
Copy path_cache.pxd
More file actions
41 lines (29 loc) · 897 Bytes
/
_cache.pxd
File metadata and controls
41 lines (29 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import cython
from ._dns cimport (
DNSAddress,
DNSEntry,
DNSHinfo,
DNSPointer,
DNSRecord,
DNSService,
DNSText,
)
cdef object _UNIQUE_RECORD_TYPES
cdef object _TYPE_PTR
cdef object _ONE_SECOND
cdef _remove_key(cython.dict cache, object key, DNSRecord record)
cdef class DNSCache:
cdef public cython.dict cache
cdef public cython.dict service_cache
@cython.locals(
records=cython.dict,
record=DNSRecord,
)
cdef _async_all_by_details(self, object name, object type_, object class_)
cdef _async_add(self, DNSRecord record)
cdef _async_remove(self, DNSRecord record)
@cython.locals(
record=DNSRecord,
)
cdef _async_mark_unique_records_older_than_1s_to_expire(self, object unique_types, object answers, object now)
cdef _dns_record_matches(DNSRecord record, object key, object type_, object class_)