mirror of
https://github.com/LingChair/LingChair-V0.git
synced 2025-12-07 17:45:49 +08:00
refactor: CachedData.addToList(str -> obj)
This commit is contained in:
@@ -215,9 +215,9 @@ class CachedData {
|
|||||||
* @param {Object} 欲缓存的对象
|
* @param {Object} 欲缓存的对象
|
||||||
* @returns {String} 该对象的ID
|
* @returns {String} 该对象的ID
|
||||||
*/
|
*/
|
||||||
static addToList(str) {
|
static addToList(obj) {
|
||||||
let id = Hash.sha256(str)
|
let id = Hash.sha256(obj)
|
||||||
this.cache[id] = str
|
this.cache[id] = obj
|
||||||
return id
|
return id
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user