diff --git a/lib/Lib/Driver/Cache/MemcacheCache.js b/lib/Lib/Driver/Cache/MemcacheCache.js index 89d04051..cd5b1a45 100644 --- a/lib/Lib/Driver/Cache/MemcacheCache.js +++ b/lib/Lib/Driver/Cache/MemcacheCache.js @@ -1,14 +1,14 @@ var memcache = thinkRequire("MemcacheSocket"); module.exports = Cache(function(){ "use strict"; - var instance = null;; + var instance = null; return { namePrefix: "__thinkjs__", init: function(options){ this.super_("init", options); if (!instance) { instance = memcache(C('memcache_port'), C('memcache_host')); - }; + } this.handle = instance; }, get: function(name){ diff --git a/lib/Lib/Driver/Socket/MemcacheSocket.js b/lib/Lib/Driver/Socket/MemcacheSocket.js index 650769b5..182d13c3 100644 --- a/lib/Lib/Driver/Socket/MemcacheSocket.js +++ b/lib/Lib/Driver/Socket/MemcacheSocket.js @@ -226,10 +226,6 @@ module.exports = inherits(EventEmitter, function(){ * @return {[type]} [description] */ increment: function(key, step){ - if (typeof step === 'function') { - callback = step; - step = 1; - } step = step || 1; return this.query('incr ' + key + ' ' + step, 'simple'); }, diff --git a/lib/Lib/Extend/Controller/RestController.js b/lib/Lib/Extend/Controller/RestController.js index 547bc34f..336c8e47 100644 --- a/lib/Lib/Extend/Controller/RestController.js +++ b/lib/Lib/Extend/Controller/RestController.js @@ -2,7 +2,7 @@ * REST Controller * @return {[type]} [description] */ -modulex.exports = Controller(function(){ +module.exports = Controller(function(){ return { __before: function(){