ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
mdl_robots_cache_t Struct Reference

Fixed-size per-host robots.txt cache for one run. More...

#include <mdl_robots.h>

Collaboration diagram for mdl_robots_cache_t:

Data Fields

mdl_robots_cache_entry_t hosts [k_mdl_robots_max_hosts]
 Cached hosts.
mdl_robots_cache_entry_t overflow
 Full-cache scratch entry.

Detailed Description

Fixed-size per-host robots.txt cache for one run.

Zero-initialise before first use; holds up to k_mdl_robots_max_hosts distinct origins. The overflow member is scratch for a full cache and is never considered a cache hit.

Invariant
Entries are filled front-to-back; [i].used gaps do not occur.
See also
mdl_robots_cache_consult()
Since
0.1.0

Definition at line 185 of file mdl_robots.h.

Field Documentation

◆ hosts

Cached hosts.

Definition at line 186 of file mdl_robots.h.

Referenced by internal_cache_find(), and internal_cache_slot().

◆ overflow

mdl_robots_cache_entry_t mdl_robots_cache_t::overflow

Full-cache scratch entry.

Definition at line 187 of file mdl_robots.h.

Referenced by internal_cache_slot().


The documentation for this struct was generated from the following file: