From eb9644440144e4ef1963e67a4989e800144be7f2 Mon Sep 17 00:00:00 2001 From: Karchnu Date: Sat, 18 Jul 2020 00:40:37 +0200 Subject: [PATCH] bugfix --- src/cached.cr | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cached.cr b/src/cached.cr index 85eb8a6..f2a7569 100644 --- a/src/cached.cr +++ b/src/cached.cr @@ -105,4 +105,9 @@ class DODB::CachedDataBase(V) < DODB::Storage(V) @data.delete key value end + + private def remove_data! + super + @data = Hash(Int32, V).new + end end