source: t/hash_namespace.t @ a57c5d

Revision a57c5d, 496 bytes checked in by Tomash Brechko <tomash.brechko@…>, 4 years ago (diff)

Add hash_namespace parameter.

The test t/hash_namespace.t is not added to MANIFEST intentionally.

  • Property mode set to 100644
Line 
1use warnings;
2use strict;
3
4use Test::More;
5
6use FindBin;
7
8use lib "$FindBin::Bin";
9use Memd;
10
11if ($Memd::memd) {
12    plan tests => 1;
13} else {
14    plan skip_all => 'Not connected';
15}
16
17
18my %params = %Memd::params;
19$params{hash_namespace} = 1;
20
21my $another_memd = new Cache::Memcached::Fast(\%params);
22
23my $ns = $another_memd->namespace('');
24my $key = 'hash_namespace';
25$another_memd->set("$ns$key", 1);
26$another_memd->namespace($ns);
27is($another_memd->get($key), 1);
28
29$another_memd->delete($key);
Note: See TracBrowser for help on using the repository browser.