中国优质的IT技术网站
专业IT技术创作平台
IT职业在线教育平台
如何删除键值型数据库中某个key的值?
微信扫码分享
try { kvStore.put("name", "李四", (err) => { if (err !== undefined) { console.error(`Failed to put data. Code:${err.code},message:${err.message}`); return; } console.info('Succeeded in putting data.'); kvStore = kvStore as distributedKVStore.SingleKVStore; kvStore.delete("name", (err) => { if (err !== undefined) { console.error(`Failed to delete data. Code:${err.code},message:${err.message}`); return; } console.info('Succeeded in deleting data.'); }); }); } catch (e) { let error = e as BusinessError; console.error(`An unexpected error occurred. Code:${error.code},message:${error.message}`); }