def delete

mylsm-lsm-store@0.6.0.1 · src/coordinator/ByteClient.bend:140

import mylsm-lsm-store@0.6.0.1/src/coordinator/ByteClient.bend as ByteClient
import Base
import mylsm-lsm-store@0.6.0.1/src/coordinator/Client.bend as Client
import mylsm-lsm-store@0.6.0.1/src/coordinator/Protocol.bend as Protocol
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes

140# Deletes one raw key through the serialized owner session.
141def delete(
142  session: Client.Session,
143  key: Bytes.Bytes
144) -> IO(Client.Session & Result<&1, &1, Client.Error, Unit>):
145  do IO<Client.Session & Result<&1, &1, Client.Error, Unit>>:
146    pair : Client.Session & Result<&1, &1, Client.Error, Protocol.Response> <-
147      Client.session.delete(session, key)
148    return write.result(pair)

Uses (12)

Used by (1)