Commit 196ded65 authored by 刘文胜's avatar 刘文胜

修改缓存key的生成方式

parent eb2843d1
......@@ -69,8 +69,8 @@ function loadAndCacheData(dur, key, fn, args, cb) {
}
function getKey(ns, args) {
var key = Array.prototype.join.call(arguments,',');
return ns + ':' + key;
var key = Array.prototype.join.call(arguments,'_');
return 'cacheable_'+key;
}
function withCache(dur, keyBuilder, fn) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment