| 1 | package Data::HashMap::Shared::SI32; | ||
| 2 | 20 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 20 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 20 | ▶ | use Data::HashMap::Shared; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 20 | our $VERSION = '0.23'; | |
| 6 | |||
| 7 | 20 | my @KEYWORDS = qw( | |
| 8 | put get remove exists incr decr incr_by max min size keys values | ||
| 9 | items each iter_reset clear to_hash max_entries get_or_set put_ttl | ||
| 10 | max_size ttl cursor cursor_next cursor_seek ttl_remaining capacity | ||
| 11 | tombstones cursor_reset take pop shift drain flush_expired | ||
| 12 | flush_expired_partial mmap_size touch reserve stat_evictions | ||
| 13 | stat_expired stat_recoveries arena_used arena_cap add add_ttl | ||
| 14 | update_ttl update swap cas cas_take persist set_ttl | ||
| 15 | ); | ||
| 16 | |||
| 17 | 8 | ▶ | sub import { |
|
Subroutine
import: called CC=2 SCAR=6.9
| |||
| 18 | 8 | $^H{__PACKAGE__ . "/shm_si32_$_"} = 1 for @KEYWORDS; | |
| 19 | } | ||
| 20 | |||
| 21 | 0 | ▶ | sub unimport { |
|
Subroutine
unimport: not called CC=2 SCAR=17.9
| |||
| 22 | 0 | my $prefix = __PACKAGE__ . '/'; | |
| 23 | 0 | delete $^H{$_} for grep { index($_, $prefix) == 0 } CORE::keys(%^H); | |
| 24 | } | ||
| 25 | |||
| 26 | 20 | 1; | |
| 27 | |||
| 28 | __END__ | ||