diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2020-02-01 14:18:28 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2020-02-01 14:18:28 -0700 |
commit | f48595c3d891765cf4d20cf5a9a829c3ab295cb5 (patch) | |
tree | ddb59bd8a320a284f85298d4f3e7924cb97dd45c /lib | |
parent | 7c6d991939009024e233d345d3e165017ff17e41 (diff) | |
download | p5-Git-Annex-f48595c3d891765cf4d20cf5a9a829c3ab295cb5.tar.gz |
add _store_unused_cache too
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Git/Annex.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Git/Annex.pm b/lib/Git/Annex.pm index 7d923f9..4287126 100644 --- a/lib/Git/Annex.pm +++ b/lib/Git/Annex.pm @@ -108,6 +108,12 @@ has _unused_cache => ( is => "lazy", default => sub { shift->_git_path(catfile(qw(annex unused_info))) }); +sub _store_unused_cache { + my $self = shift; + $self->{_unused}{timestamp} = time; + store $self->{_unused}, $self->_unused_cache; +} + sub _clear_unused_cache { my $self = shift; delete $self->{_unused}; |