WithMeta adds meta data to Entry e. This byte is stored alongside the key and can be used as an aid to interpret the value or store other contextual bits corresponding to the key-value pair of entry.
(meta byte)
| 179 | // and can be used as an aid to interpret the value or store other contextual |
| 180 | // bits corresponding to the key-value pair of entry. |
| 181 | func (e *Entry) WithMeta(meta byte) *Entry { |
| 182 | e.UserMeta = meta |
| 183 | return e |
| 184 | } |
| 185 | |
| 186 | // WithDiscard adds a marker to Entry e. This means all the previous versions of the key (of the |
| 187 | // Entry) will be eligible for garbage collection. |
no outgoing calls