Skip to content
This repository was archived by the owner on Dec 1, 2024. It is now read-only.

Commit 7372fce

Browse files
committed
Changed options for get to same as put
The `get` options paragraph didn't mention that `value` objects also adhrere to `valueEncoding`. I just removed the duplicate paragraph with less information and stated that `get` is the same as `put` - seems more DRY.
1 parent 518d34e commit 7372fce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ db.get('foo', function (err, value) {
251251

252252
#### `options`
253253

254-
Encoding of the `key` object will adhere to the `'keyEncoding'` option provided to <a href="#ctor"><code>levelup()</code></a>, although you can provide alternative encoding settings in the options for `get()` (it's recommended that you stay consistent in your encoding of keys and values in a single store).
254+
Encoding of the `key` and `value` objects is the same as in <a href="#put"><code>put</code></a>.
255255

256256
LevelDB will by default fill the in-memory LRU Cache with data from a call to get. Disabling this is done by setting `fillCache` to `false`.
257257

0 commit comments

Comments
 (0)