mirror of
https://github.com/libp2p/go-libp2p-peerstore.git
synced 2026-08-22 15:33:27 +08:00
Each entry in the address book KV store now represents a full peer with all its addresses. Expiries and TTLs are kept inline. Records are serialised with Protobuf. Housekeeping is performed on retrieve, and via a periodic GC routine. The architecture mimics a write-through cache, although not strictly.