mirror of
https://github.com/libp2p/go-libp2p-peerstore.git
synced 2025-01-16 02:50:07 +08:00
c423e9e997
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. |
||
---|---|---|
.. | ||
addr_book.go | ||
cache.go | ||
ds_test.go | ||
keybook.go | ||
metadata.go | ||
peerstore.go |