Home
last modified time | relevance | path

Searched refs:key (Results 1 – 25 of 42) sorted by relevance

12

/memcached-1.4.29/t/
H A Dbinary.t78 my $key = shift;
87 $empty->($key);
317 $empty->($key);
331 $empty->($key);
334 $empty->($key);
341 $empty->($key);
353 $empty->($key);
596 $empty->($key);
703 my $key = shift;
726 my $key = shift;
[all …]
H A Dstress-memcached.pl61 my $key = key($i);
62 my $set = $memc->set($key, $key);
68 my $key = key($rand);
74 $memc->add($key, $key, $exp);
77 $memc->delete($key);
80 $memc->set($key, $key, $exp);
84 $key = key($rand);
86 my $v = $memc->get($key);
88 if ($v && $v ne $key) { die "Bogus: $v for key $rand\n"; }
92 my $multi = $memc->get_multi(map { key(int(rand($max))) } (1..$max));
[all …]
H A Dissue_3.t11 my $key = "del_key";
13 print $sock "delete $key\r\n";
16 print $sock "delete $key 10\r\n";
20 print $sock "add $key 0 0 1\r\nx\r\n";
27 print $sock "add $key 0 0 1\r\nx\r\n";
30 print $sock "delete $key noreply\r\n";
33 print $sock "set $key 0 0 1\r\nx\r\n";
36 print $sock "delete $key\r\n";
39 print $sock "set $key 0 0 1\r\nx\r\n";
42 print $sock "delete $key noreply\r\n";
[all …]
H A Ddyn-maxbytes.t13 my $key = 0;
16 for ($key = 0; $key < 40; $key++) {
17 print $sock "set key$key 0 0 66560\r\n$value\r\n";
18 is(scalar <$sock>, "STORED\r\n", "stored key$key");
51 for (;$key < 150; $key++) {
52 print $sock "set key$key 0 0 66560\r\n$value\r\n";
53 is(scalar <$sock>, "STORED\r\n", "stored key$key");
64 for ($key = 0; $key < 150; $key++) {
65 print $sock "delete key$key\r\n";
66 like(scalar <$sock>, qr/(DELETED|NOT_FOUND)\r\n/, "deleted key$key");
H A Devictions.t13 my $key = 0;
16 for ($key = 0; $key < 40; $key++) {
17 print $sock "set key$key 0 0 66560\r\n$value\r\n";
18 is(scalar <$sock>, "STORED\r\n", "stored key$key");
22 for ($key = 0; $key < 50; $key++) {
23 print $sock "set key$key 0 600 66560\r\n$value\r\n";
24 is(scalar <$sock>, "STORED\r\n", "stored key$key");
H A Dissue_14.t12 my $key = 0;
14 for ($key = 0; $key < 10; $key++) {
15 print $sock "set key$key 0 2 66560\r\n$value\r\n";
16 is (scalar <$sock>, "STORED\r\n", "stored key$key");
25 for ($key = 10; $key < 20; $key++) {
26 print $sock "set key$key 0 2 66560\r\n$value\r\n";
27 is (scalar <$sock>, "STORED\r\n", "stored key$key");
H A Drefhang.t18 my $key = 0;
22 for ($key = 0; $key < 120; $key++) {
23 $mget .= "key$key " if $key < 115;
24 print $sock "set key$key 0 0 66560\r\n$value\r\n";
25 is(scalar <$sock>, "STORED\r\n", "stored key$key");
44 for ($key = 121; $key < 240; $key++) {
45 print $sock "set key$key 0 0 66560\r\n$value\r\n";
H A Dissue_22.t12 my $key = 0;
14 for ($key = 0; $key < 40; $key++) {
15 print $sock "set key$key 0 0 66560\r\n$value\r\n";
16 is (scalar <$sock>, "STORED\r\n", "stored key$key");
32 for ($key = 40; $key < 80; $key++) {
33 print $sock "set key$key 0 0 66560\r\n$value\r\n";
34 is (scalar <$sock>, "STORED\r\n", "stored key$key");
H A Ddash-M.t16 my $key = 0;
19 print $sock "set dash$key 0 0 $vallen\r\n$value\r\n";
20 $key++;
24 my $max_stored = $key - 1;
28 print $sock "set dash$key 0 0 $vallen\r\n$value\r\n";
32 for($key = 0; $key < $max_stored; $key++) {
33 mem_get_is $sock, "dash$key", $value, "Failed at dash$key";
H A Dbinary-sasl.t100 my ($key, $orig_val) = @_;
115 $check->($key, $orig_value);
119 my $key = shift;
133 my ($key, $when) = @_;
134 $mc->delete($key, $when);
135 $empty->($key);
385 $empty->($key);
388 $check->($key, $value);
476 my $key = shift;
500 my $key = shift;
[all …]
H A Dudp.t71 my $key_len = length($key);
76 $req .= $extra . $key . $value;
93 my $key_len = length($key);
98 $req = "get $key\r\n";
101 $req .= $key;
128 my $key_len = length($key);
131 $req = "delete $key\r\n";
134 $req .= $key;
152 my $key_len = length($key);
165 $req = "$acmd $key $val\r\n";
[all …]
H A Dlru-maintainer.t30 for (my $key = 0; $key < 100; $key++) {
31 if ($key == 30) {
44 print $sock "set key$key 0 0 66560\r\n$value\r\n";
45 is(scalar <$sock>, "STORED\r\n", "stored key$key");
78 for (my $key = 0; $key < 100; $key++) {
79 print $sock "set key$key 0 3600 66560\r\n$value\r\n";
80 is(scalar <$sock>, "STORED\r\n", "stored key$key");
H A Dissue_68.t13 my $key = "x" x $keyi;
14 print $sock "set $key 0 0 1\r\n9\r\n";
15 is (scalar <$sock>, "STORED\r\n", "stored $key");
16 mem_get_is($sock, $key, "9");
17 print $sock "incr $key 1\r\n";
18 is (scalar <$sock>, "10\r\n", "incr $key to 10");
19 mem_get_is($sock, $key, "10");
H A Dissue_108.t11 my $key = "del_key";
13 print $sock "add $key 0 0 1\r\nx\r\n";
16 print $sock "delete $key 0\r\n";
19 print $sock "add $key 0 0 1\r\nx\r\n";
22 print $sock "delete $key 0 noreply\r\n";
25 print $sock "add $key 0 0 1\r\nx\r\n";
H A Dissue_42.t12 my $key = 0;
14 for ($key = 0; $key < 10; $key++) {
15 print $sock "set key$key 0 0 10\r\n$value\r\n";
16 is (scalar <$sock>, "STORED\r\n", "stored key$key");
H A Dbinary-get.t15 my $key = "foo$count";
18 print $sock "set $key 0 0 $len\r\n$blob\r\n";
19 is(scalar <$sock>, "STORED\r\n", "stored $key");
20 mem_get_is($sock, $key, $blob);
H A Dissue_41.t16 my $key = '';
22 $key = "$i:$j";
23 print $sock "set key$key 0 0 $factor\r\n$val\r\n";
24 is (scalar <$sock>, "STORED\r\n", "stored key$key");
H A Dstats.t30 foreach my $key (qw(curr_items total_items bytes cmd_get cmd_set get_hits evictions get_misses get_…
33 is($stats->{$key}, 0, "initial $key is zero");
45 foreach my $key (qw(total_items curr_items cmd_get cmd_set get_hits)) {
46 is($stats->{$key}, 1, "after one set/one get $key is 1");
/memcached-1.4.29/
H A Dmemcached_dtrace.d108 probe assoc__find(const char *key, int keylen, int depth);
117 probe assoc__insert(const char *key, int keylen, int nokeys);
126 probe assoc__delete(const char *key, int keylen, int nokeys);
134 probe item__link(const char *key, int keylen, int size);
142 probe item__unlink(const char *key, int keylen, int size);
150 probe item__remove(const char *key, int keylen, int size);
158 probe item__update(const char *key, int keylen, int size);
196 probe command__get(int connid, const char *key, int keylen, int size, int64_t casid);
281 probe command__incr(int connid, const char *key, int keylen, int64_t val);
290 probe command__decr(int connid, const char *key, int keylen, int64_t val);
[all …]
H A Dtestapp.c1225 key, strlen(key), NULL, 0); in test_binary_delete_impl()
1233 key, strlen(key), NULL, 0, 0, 0); in test_binary_delete_impl()
1240 cmd, key, strlen(key), NULL, 0); in test_binary_delete_impl()
1281 key, strlen(key), NULL, 0); in test_binary_get_impl()
1290 key, strlen(key), NULL, 0, in test_binary_get_impl()
1307 key, strlen(key), NULL, 0); in test_binary_get_impl()
1366 key, strlen(key), NULL, 0); in test_binary_getq_impl()
1523 key, strlen(key), NULL, 0); in test_binary_flush_impl()
1555 key, strlen(key), NULL, 0); in test_binary_flush_impl()
1618 key, strlen(key), NULL, 0); in test_binary_concat_impl()
[all …]
H A Dstats.c73 assert(key != NULL); in stats_prefix_find()
75 for (length = 0; length < nkey && key[length] != '\0'; length++) { in stats_prefix_find()
76 if (key[length] == settings.prefix_delimiter) { in stats_prefix_find()
86 hashval = hash(key, length) % PREFIX_HASH_SIZE; in stats_prefix_find()
89 if (strncmp(pfs->prefix, key, length) == 0) in stats_prefix_find()
106 strncpy(pfs->prefix, key, length); in stats_prefix_find()
126 pfs = stats_prefix_find(key, nkey); in stats_prefix_record_get()
139 void stats_prefix_record_delete(const char *key, const size_t nkey) { in stats_prefix_record_delete() argument
143 pfs = stats_prefix_find(key, nkey); in stats_prefix_record_delete()
153 void stats_prefix_record_set(const char *key, const size_t nkey) { in stats_prefix_record_set() argument
[all …]
H A Dstats.h4 void stats_prefix_record_get(const char *key, const size_t nkey, const bool is_hit);
5 void stats_prefix_record_delete(const char *key, const size_t nkey);
6 void stats_prefix_record_set(const char *key, const size_t nkey);
H A Dassoc.c78 item *assoc_find(const char *key, const size_t nkey, const uint32_t hv) { in assoc_find() argument
93 if ((nkey == it->nkey) && (memcmp(key, ITEM_key(it), nkey) == 0)) { in assoc_find()
100 MEMCACHED_ASSOC_FIND(key, nkey, depth); in assoc_find()
107 static item** _hashitem_before (const char *key, const size_t nkey, const uint32_t hv) { in _hashitem_before() argument
119 while (*pos && ((nkey != (*pos)->nkey) || memcmp(key, ITEM_key(*pos), nkey))) { in _hashitem_before()
182 void assoc_delete(const char *key, const size_t nkey, const uint32_t hv) { in assoc_delete() argument
183 item **before = _hashitem_before(key, nkey, hv); in assoc_delete()
193 MEMCACHED_ASSOC_DELETE(key, nkey, hash_items); in assoc_delete()
/memcached-1.4.29/scripts/
H A Dmc_slab_mover246 for my $key (keys %slab) {
248 if ($slab{$key} =~ m/^\d+$/) {
249 $totals{$key} += $slab{$key};
250 $slab{$key . '_d'} = $sa->{$key} - $sb->{$key};
251 $totals{$key . '_d'} += $sa->{$key} - $sb->{$key};
/memcached-1.4.29/t/lib/
H A DMemcachedTest.pm39 my ($sock_opts, $key, $val, $msg) = @_;
45 $msg ||= "$key == $dval";
47 print $sock "get $key\r\n";
57 my $expected = "VALUE $key $expect_flags $len\r\n$val\r\nEND\r\n";
69 my ($sock_opts, $key) = @_;
75 print $sock "gets $key\r\n";
97 my ($sock_opts, $identifier, $key, $val, $msg) = @_;
103 $msg ||= "$key == $dval";
105 print $sock "gets $key\r\n";
115 my $expected = "VALUE $key $expect_flags $len $identifier\r\n$val\r\nEND\r\n";

12