3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-24 03:33:06 +01:00

Add ability to clear DualIndexHashObject

This commit is contained in:
Pragmatic Software 2017-08-05 20:15:15 -07:00
parent e5bd377477
commit 16f34026da

View File

@ -152,6 +152,11 @@ sub save {
close FILE;
}
sub clear {
my $self = shift;
$self->{hash} = {};
}
sub find_index {
my $self = shift;
my ($primary_index_key, $secondary_index_key) = map {lc} @_;