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

Method isKeyValid

tx_list.go:172–182  ·  view source on GitHub ↗
(bucket string, key []byte)

Source from the content-addressed store, hash-verified

170}
171
172func (tx *Tx) isKeyValid(bucket string, key []byte) error {
173 if err := tx.checkTxIsClosed(); err != nil {
174 return err
175 }
176
177 if tx.CheckExpire(bucket, key) {
178 return ErrListNotFound
179 }
180
181 return nil
182}
183
184func (tx *Tx) LPushRaw(bucket string, key []byte, values ...[]byte) error {
185 if err := tx.isKeyValid(bucket, key); err != nil {

Callers 4

RPushMethod · 0.95
LPushMethod · 0.95
LPushRawMethod · 0.95
RPushRawMethod · 0.95

Calls 2

checkTxIsClosedMethod · 0.95
CheckExpireMethod · 0.95

Tested by

no test coverage detected