Function

current

Read a key's current value and version, for use as the precondition of a later swap. Returns none if the key does not exist.

store.get deliberately omits the version; use this when you intend to do a version-checked swap.

current: async func(bucket: borrow​<bucket>, key: string) -> result​<option​<entry>, error>;