Skip to content

Commit

Permalink
Added "gc_interval" parameter for Ruby to match Node.js
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkinson committed Feb 4, 2015
1 parent 82373f3 commit e89683c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/nodejs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ connection strings:
var qm = require('qm');
qm.launch_service({
avar_ttl: 86400, //- expire avars after 24 hours
avar_ttl: 86400, //- expire avars after _ seconds
enable_api_server: false,
enable_cors: false,
enable_web_server: false,
gc_interval: 60, //- evict old avars every _ seconds
gc_interval: 60, //- evict unused avars every _ seconds
hostname: '0.0.0.0', //- aka INADDR_ANY
log: function (request) {
// This function is the default logging function.
Expand Down
5 changes: 3 additions & 2 deletions docs/ruby.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@ connection strings:
require 'qm'
QM.launch_service({
avar_ttl: 86400, # seconds to store avars (default: 24 hours)
avar_ttl: 86400, # expire avars after _ seconds
enable_api_server: false,
enable_cors: false,
enable_web_server: false,
gc_interval: 60, # evict unused avars every _ seconds
hostname: '0.0.0.0',
max_body_size: 65536, # 64 * 1024 = 64 KB
max_body_size: 65536, # 64 * 1024 = 64 KB
persistent_storage: {
# mongo: 'mongodb://localhost:27017/test'
# postgres: 'postgres://localhost:5432/' + ENV['USER']
Expand Down
2 changes: 1 addition & 1 deletion src/ruby-gem

0 comments on commit e89683c

Please sign in to comment.