(bucket string, key []byte)
| 170 | } |
| 171 | |
| 172 | func (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 | |
| 184 | func (tx *Tx) LPushRaw(bucket string, key []byte, values ...[]byte) error { |
| 185 | if err := tx.isKeyValid(bucket, key); err != nil { |
no test coverage detected