From 5851993057067b67a2e55f6b24aafd60ab091703 Mon Sep 17 00:00:00 2001 From: dc0d Date: Thu, 8 Feb 2018 13:02:25 +0330 Subject: [PATCH] improve OnExpired docs --- buntdb.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/buntdb.go b/buntdb.go index e99ba26..bfe08af 100644 --- a/buntdb.go +++ b/buntdb.go @@ -119,7 +119,9 @@ type Config struct { AutoShrinkDisabled bool // OnExpired is used to custom handle the deletion option when a key - // has been expired. + // has been expired. If OnExpired is present, the entries will not get deleted + // and it's the responsibility of OnExpired to delete them - or re-set + // them - for a sliding timeout. OnExpired func(keys []string) }