Created
July 10, 2014 10:04
-
-
Save tokubass/028d280b754888b55fbc to your computer and use it in GitHub Desktop.
memcached1.3.2からdeleteは第2引数とらない
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Sledge::Session::Memcached; | |
BEGIN { | |
no warnings; | |
*Sledge::Session::Memcached::_delete_me = sub { | |
my $self = shift; | |
my $ok = $self->{_dbh}->delete($self->{_sid}); | |
unless ($ok) { | |
warn 'delete command fails'; | |
} | |
$ok; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment