The manual says:
$cache->clear($key)
Removes all entries from the cache.
but in reality the method doesn't have parameters and passing a single $key would be nonsense anyway:
sub clear {
my $self = shift;
$self->{_entries} = {};
$self->{_fifo} = [];
}