MCPcopy Create free account
hub / github.com/nutsdb/nutsdb / Get

Method Get

tx_btree.go:87–89  ·  view source on GitHub ↗

Get retrieves the value for a key in the bucket. The returned value is only valid for the life of the transaction.

(bucket string, key []byte)

Source from the content-addressed store, hash-verified

85// Get retrieves the value for a key in the bucket.
86// The returned value is only valid for the life of the transaction.
87func (tx *Tx) Get(bucket string, key []byte) (value []byte, err error) {
88 return tx.get(bucket, key)
89}
90
91func (tx *Tx) get(bucket string, key []byte) (value []byte, err error) {
92 if err := tx.checkTxIsClosed(); err != nil {

Callers 15

GetBitMethod · 0.95
MGetMethod · 0.95
TestBatchWriteFunction · 0.45
BenchmarkTx_GetFunction · 0.45
BenchmarkTx_LargeValuesFunction · 0.45
TestMergeV2BasicFlowFunction · 0.45

Calls 1

getMethod · 0.95