Added Cache::FileCache support.
This commit is contained in:
parent
0938e9d6cb
commit
77a5b7406a
2 changed files with 12 additions and 39 deletions
|
|
@ -25,26 +25,7 @@ use File::Copy ();
|
|||
use File::Path ();
|
||||
use FileHandle ();
|
||||
use POSIX ();
|
||||
|
||||
|
||||
|
||||
#----------------------------------------
|
||||
# International Message Caching
|
||||
#----------------------------------------
|
||||
#Test to see if IPC::Sharable will load.
|
||||
my $hasIPC=1;
|
||||
eval " use IPC::Shareable (); "; $hasIPC=0 if $@;
|
||||
my (%international);
|
||||
if ($hasIPC) {
|
||||
my $glue = 'intl';
|
||||
my %options = (
|
||||
create => 'yes',
|
||||
exclusive => 0,
|
||||
mode => 0666,
|
||||
destroy => 'yes',
|
||||
);
|
||||
tie %international, 'IPC::Shareable', $glue, { %options };
|
||||
}
|
||||
eval " use Cache::FileCache (); "; # check to see if it will load;
|
||||
|
||||
|
||||
#----------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue