Commit ca05ee2
committed
fix(get): return null bulk string for missing keys and enforce type
check
- Return RESP null bulk string when key is absent
- Return WRONGTYPE when stored value is not a BulkString
- Avoid relying on toString() for BulkString values1 parent 39cf2f9 commit ca05ee2
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
36 | | - | |
37 | | - | |
38 | | - | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
0 commit comments