Skip to content

Instantly share code, notes, and snippets.

@preaction
Created October 13, 2010 23:02
Show Gist options
  • Select an option

  • Save preaction/625136 to your computer and use it in GitHub Desktop.

Select an option

Save preaction/625136 to your computer and use it in GitHub Desktop.
use strict;
use warnings;
use Config::JSON;
for my $file ( @ARGV ) {
my $conf = Config::JSON->new( $file );
$conf->set('cacheType' => 'WebGUI::Cache::CHI');
$conf->set('cache' => {
"driver" => "FastMmap",
"expires_in" => "6000",
"expires_variance" => "0.20",
"is_size_aware" => 1,
"namespace" => $file,
"root_dir" => "/tmp/WebGUICHI"
} );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment