(key: string)
| 99 | static async get(key: string): Promise<string> { |
| 100 | await this.init(); |
| 101 | return this.db?.data[key] ?? DEFAULT_CONFIG[key] ?? ""; |
| 102 | } |
| 103 | |
| 104 | static async set(key: string, value: string): Promise<boolean> { |
| 105 | await this.init(); |
| 106 | if (!this.db) return false; |
| 107 | try { |
no test coverage detected