Files
NapCatQQ/.pnpm-store/v3/files/12/956a422f926cd5b3b531f217014de9a02f0ba6e1d4c22a0133f679b3d1192b41cbdd6f4b9281d848e9fdbefe49ce58045839e02fb24ef8a94a617436cda4eb
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

23 lines
487 B
Plaintext

import getMapData from './_getMapData.js';
/**
* Sets the map `key` to `value`.
*
* @private
* @name set
* @memberOf MapCache
* @param {string} key The key of the value to set.
* @param {*} value The value to set.
* @returns {Object} Returns the map cache instance.
*/
function mapCacheSet(key, value) {
var data = getMapData(this, key),
size = data.size;
data.set(key, value);
this.size += data.size == size ? 0 : 1;
return this;
}
export default mapCacheSet;