diff options
author | Florian Pritz <bluewind@xinu.at> | 2017-04-02 23:58:04 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2017-04-02 23:58:45 +0200 |
commit | 686623ab687cfd4aaa5b4c156faf65ee75ad4000 (patch) | |
tree | 3e01a536d8196f9aaa3e7da21bc2453c5c3b97dc /lib/App/BorgRestore.pm | |
parent | d919cb733de7622835aa6148ed939051d67cb64f (diff) | |
download | App-BorgRestore-686623ab687cfd4aaa5b4c156faf65ee75ad4000.tar.gz App-BorgRestore-686623ab687cfd4aaa5b4c156faf65ee75ad4000.tar.xz |
Make sqlite cache size configurable
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'lib/App/BorgRestore.pm')
-rw-r--r-- | lib/App/BorgRestore.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/App/BorgRestore.pm b/lib/App/BorgRestore.pm index 4047b2c..9c236e3 100644 --- a/lib/App/BorgRestore.pm +++ b/lib/App/BorgRestore.pm @@ -93,9 +93,10 @@ sub new { bless $self, $class; my $db_path = App::BorgRestore::Settings::get_db_path(); + my $cache_size = $App::BorgRestore::Settings::sqlite_cache_size; $self->{borg} = $deps->{borg} // App::BorgRestore::Borg->new($App::BorgRestore::Settings::borg_repo); - $self->{db} = $deps->{db} // App::BorgRestore::DB->new($db_path); + $self->{db} = $deps->{db} // App::BorgRestore::DB->new($db_path, $cache_size); return $self; } |