mirror of
https://github.com/thinkjs/thinkjs.git
synced 2026-01-25 14:42:47 +00:00
修复jshint错误
This commit is contained in:
parent
2e012fe75e
commit
651bd642a3
@ -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){
|
||||
|
||||
@ -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');
|
||||
},
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
* REST Controller
|
||||
* @return {[type]} [description]
|
||||
*/
|
||||
modulex.exports = Controller(function(){
|
||||
module.exports = Controller(function(){
|
||||
return {
|
||||
__before: function(){
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user