File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ class MemoryLevel extends AbstractLevel {
37
37
createIfMissing : false ,
38
38
errorIfExists : false ,
39
39
has : true ,
40
+ getSync : true ,
40
41
encodings : { [ storeEncoding ] : true } ,
41
42
signals : {
42
43
// Would have no value here because the operations are synchronous
@@ -62,6 +63,11 @@ class MemoryLevel extends AbstractLevel {
62
63
return tree . get ( key )
63
64
}
64
65
66
+ _getSync ( key , options ) {
67
+ const tree = options . snapshot ?. [ kTree ] ?? this . #tree
68
+ return tree . get ( key )
69
+ }
70
+
65
71
async _getMany ( keys , options ) {
66
72
const tree = options . snapshot ?. [ kTree ] ?? this . #tree
67
73
return keys . map ( get , tree )
Original file line number Diff line number Diff line change 20
20
" CHANGELOG.md"
21
21
],
22
22
"dependencies" : {
23
- "abstract-level" : " ^3.0.1 " ,
23
+ "abstract-level" : " ^3.1.0 " ,
24
24
"functional-red-black-tree" : " ^1.0.1" ,
25
25
"module-error" : " ^1.0.1"
26
26
},
You can’t perform that action at this time.
0 commit comments