mirror of
https://github.com/saltbo/zpan.git
synced 2026-09-24 23:22:31 +08:00
15 lines
444 B
TypeScript
15 lines
444 B
TypeScript
export interface SystemOption {
|
|
key: string
|
|
value: string
|
|
}
|
|
|
|
export interface SystemOptionsRepo {
|
|
get(key: string): Promise<SystemOption | null>
|
|
getValue(key: string): Promise<string | null>
|
|
getMany(keys: string[]): Promise<SystemOption[]>
|
|
listByPrefix(prefix: string): Promise<SystemOption[]>
|
|
set(key: string, value: string): Promise<void>
|
|
setMany(entries: SystemOption[]): Promise<void>
|
|
delete(key: string): Promise<void>
|
|
}
|