10 lines
227 B
TypeScript
10 lines
227 B
TypeScript
|
import {syscall} from "./syscall.ts";
|
||
|
|
||
|
export async function put(key: string, value: any) {
|
||
|
return await syscall("db.put", key, value);
|
||
|
}
|
||
|
|
||
|
export async function get(key: string) {
|
||
|
return await syscall("db.get", key);
|
||
|
}
|