2022-10-10 12:50:21 +00:00
|
|
|
import { syscall } from "./syscall.ts";
|
|
|
|
|
|
|
|
export function set(key: string, value: any): Promise<void> {
|
2023-05-23 18:53:53 +00:00
|
|
|
return syscall("store.set", key, value);
|
2022-10-10 12:50:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export function get(key: string): Promise<any> {
|
2023-05-23 18:53:53 +00:00
|
|
|
return syscall("store.get", key);
|
2022-10-10 12:50:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export function del(key: string): Promise<void> {
|
2023-05-23 18:53:53 +00:00
|
|
|
return syscall("store.delete", key);
|
2022-10-10 12:50:21 +00:00
|
|
|
}
|