nothingmuchのCahe::FastMmapラッパ

use base qw/Cache::FastMmap/;

sub get {
    my ( $self, $key ) = @_;
    ${ $self->SUPER::get($key) || return };
}

sub set {
    my ( $self, $key, $value ) = @_;
    $self->SUPER::set( $key => \$value );
}

カッコイイわぁ。

by typester / at 2006-09-11T18:04:00 / perl / Comments(0)