improve OnExpired docs

This commit is contained in:
dc0d 2018-02-08 13:02:25 +03:30
parent 2da7c10668
commit 5851993057
1 changed files with 3 additions and 1 deletions

View File

@ -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)
}