[Groonga-commit] droonga/express-droonga at f659a66 [master] Add --cache-size option

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Mar 25 13:29:24 JST 2014


Kouhei Sutou	2014-03-25 13:29:24 +0900 (Tue, 25 Mar 2014)

  New Revision: f659a6657718e8a60409ed905bfaa91c2ed0f556
  https://github.com/droonga/express-droonga/commit/f659a6657718e8a60409ed905bfaa91c2ed0f556

  Message:
    Add --cache-size option

  Modified files:
    application.js

  Modified: application.js (+3 -0)
===================================================================
--- application.js    2014-03-25 11:28:33 +0900 (9ad991a)
+++ application.js    2014-03-25 13:29:24 +0900 (9353cdd)
@@ -19,6 +19,8 @@ options
   .option('--default-dataset <dataset>', 'The default dataset',
           'Droonga')
   .option('--enable-logging', 'Enable logging to the standard output')
+  .option('--cache-size <size>', 'The max number of cached requests',
+          parseInt, 100)
   .parse(process.argv);
 
 var application = express();
@@ -37,6 +39,7 @@ application.configure(function() {
   }));
   application.use(responseTime());
   application.use(cache({
+    size: options.cacheSize,
     rules: [
       { regex: /./ }
     ]
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index