From 5a4465ed49cf2a85c732ede96cf55baf89e137c7 Mon Sep 17 00:00:00 2001 From: Philippe PITTOLI Date: Thu, 23 May 2024 06:43:38 +0200 Subject: [PATCH] fix storage --- src/dodb/storage.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dodb/storage.cr b/src/dodb/storage.cr index ae9ee81..4aef828 100644 --- a/src/dodb/storage.cr +++ b/src/dodb/storage.cr @@ -169,7 +169,7 @@ abstract class DODB::Storage(V) # Creates a new basic index **with a cache**. # The *name* parameter is the name of the directory that will be created. def new_index(name : String, &block : Proc(V, String | DODB::NoIndex)) - Index::CachedIndex(V).new(self, @directory_name, name, block).tap do |indexer| + Index::BasicCached(V).new(self, @directory_name, name, block).tap do |indexer| @indexers << indexer end end @@ -179,7 +179,7 @@ abstract class DODB::Storage(V) # # NOTE: this will be a lot slower than the cached version. def new_uncached_index(name : String, &block : Proc(V, String | DODB::NoIndex)) - Index::Index(V).new(self, @directory_name, name, block).tap do |indexer| + Index::Basic(V).new(self, @directory_name, name, block).tap do |indexer| @indexers << indexer end end