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