From c42306082b1d954d553b27d62c86a75c1ceaa05c Mon Sep 17 00:00:00 2001 From: Janos Guljas Date: Thu, 10 Jan 2019 13:30:41 +0100 Subject: [PATCH] swarm/storage/localstore: update package overview --- swarm/storage/localstore/doc.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/swarm/storage/localstore/doc.go b/swarm/storage/localstore/doc.go index 565638a335..d730fc92ab 100644 --- a/swarm/storage/localstore/doc.go +++ b/swarm/storage/localstore/doc.go @@ -45,5 +45,12 @@ the database. Subscription methods are implemented for a specific purpose of continuous iterations over Chunks that should be provided to Push and Pull syncing. + +DB implements an internal garbage collector that removes only synced +Chunks from the database based on their most recent access time. + +Internally, DB stores Chunk data and any required information, such as +store and access timestamps in different shed indexes that can be +iterated on by garbage collector or subscriptions. */ package localstore