Compare commits
2 Commits
351df7426f
...
cab18cd26b
Author | SHA1 | Date | |
---|---|---|---|
cab18cd26b | |||
b4460e59fa |
@ -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)
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user