def put_go

mylsm-lsm-store@0.3.2.0 · mylsm.bend:111

import mylsm-lsm-store@0.3.2.0/mylsm.bend as Mylsm
import Base
import mylsm-lsm-store@0.3.2.0/src/Wal.bend as Wal
import mylsm-lsm-store@0.3.2.0/src/Db.bend as Db

111# Pure put transition used by the session action.
112def put_go(+db: Db.Db, +key: String, +val: String) -> Db.Db:
113  match db:
114    case Db.Db{dir, mem, frozen, batch_cap, bcache, levels, flushed, manifest_token, mem_count, frozen_count}:
115      Db.apply_done(Db.apply_and_rotate(Con{Wal.Put{key, val}, Nil{}}, mem, frozen, mem_count, frozen_count), dir, batch_cap, bcache, levels, flushed, manifest_token)

Uses (6)

Used by (1)