Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pisns-forum-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
scrmGroup
pisns-forum-api
Commits
196ded65
Commit
196ded65
authored
Mar 18, 2016
by
刘文胜
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改缓存key的生成方式
parent
eb2843d1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cacheable.js
app/utils/cacheable.js
+2
-2
No files found.
app/utils/cacheable.js
View file @
196ded65
...
...
@@ -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
)
{
...
...
strong
@strong
mentioned in commit
fbc9f3ee
·
Mar 18, 2016
mentioned in commit
fbc9f3ee
mentioned in commit fbc9f3ee6e04c85a307e1362f82d476c96b36e50
Toggle commit list
strong
@strong
mentioned in commit
0fb26aa0
·
Mar 18, 2016
mentioned in commit
0fb26aa0
mentioned in commit 0fb26aa028c163be483feba14dab83eb6121fe96
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment