Commit Graph

5 Commits

Author SHA1 Message Date
Raúl Kripalani
87fab3950d pstoreds: switch protobuf compilation to gogofaster. 2019-02-19 17:41:14 +00:00
Raúl Kripalani
fd57c55d87 document custom gogo types; reorg code. 2018-11-30 16:19:57 +00:00
Raúl Kripalani
22f8aa142c fix makefile for protobuf. 2018-11-15 13:40:48 +00:00
Raúl Kripalani
4c43736fe9 pstoreds: tighten up gc-based peerstore.
Introduces custom types in protobuf to serde directly into multiaddrs
and peer IDs. Simplify purge by ordering addrs by expiry. In general,
getting this readier for merge.
2018-11-15 13:32:08 +00:00
Raúl Kripalani
c423e9e997 pstoreds: migrate from strict TTL to GC-based expiry.
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.
2018-11-13 16:57:51 +00:00