DiscardEarlierVersions returns whether the item was created with the option to discard earlier versions of a key when multiple are available.
()
| 145 | // DiscardEarlierVersions returns whether the item was created with the |
| 146 | // option to discard earlier versions of a key when multiple are available. |
| 147 | func (item *Item) DiscardEarlierVersions() bool { |
| 148 | return item.meta&bitDiscardEarlierVersions > 0 |
| 149 | } |
| 150 | |
| 151 | func (item *Item) yieldItemValue() ([]byte, func(), error) { |
| 152 | key := item.Key() // No need to copy. |
no outgoing calls