Compare commits

...

2 Commits

2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ class DODB::CachedDataBase(V) < DODB::Storage(V)
return nil return nil
end end
def [](key : Int32) : V def [](key : Int32) : V
@data[key] rescue raise MissingEntry.new(key) @data[key].clone rescue raise MissingEntry.new(key)
end end
def []=(index : Int32, value : V) def []=(index : Int32, value : V)

View File

@ -114,7 +114,7 @@ class DODB::Index(V) < DODB::Indexer(V)
end end
def update(index : String, new_value : V) def update(index : String, new_value : V)
_, key = get_with_key index key = get_key_on_fs index
@storage[key] = new_value @storage[key] = new_value
end end