Skip to content

Commit c829dd9

Browse files
committed
rename cache.init
1 parent 0303ee0 commit c829dd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cache.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @param {Object|boolean} opts The instance its options
99
* @returns {Object|false} The cache instance
1010
*/
11-
function init (server, opts) {
11+
function create (server, opts) {
1212
return opts ? server.cache(opts === true ? {} : opts) : false
1313
}
1414

@@ -45,7 +45,7 @@ function set (cache, key, value, ttl, done) {
4545
}
4646

4747
module.exports = {
48-
init,
48+
create,
4949
get,
5050
set
5151
}

0 commit comments

Comments
 (0)