• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/apr-util/test/

Lines Matching refs:memcache

126  * general test to make sure we can create the memcache struct and add
134 apr_memcache_t *memcache;
140 rv = apr_memcache_create(pool, max_servers, 0, &memcache);
141 ABTS_ASSERT(tc, "memcache create failed", rv == APR_SUCCESS);
151 rv = apr_memcache_add_server(memcache, server);
154 s = apr_memcache_find_server(memcache, HOST, port);
157 rv = apr_memcache_disable_server(memcache, s);
160 rv = apr_memcache_enable_server(memcache, s);
163 hash = apr_memcache_hash(memcache, prefix, strlen(prefix));
166 s = apr_memcache_find_server_hash(memcache, hash);
173 rv = apr_memcache_add_server(memcache, server);
200 apr_memcache_t *memcache;
208 rv = apr_memcache_create(pool, max_servers, 0, &memcache);
209 ABTS_ASSERT(tc, "memcache create failed", rv == APR_SUCCESS);
215 memcache->hash_func = my_hash_func;
217 hres = apr_memcache_hash(memcache, "whatever", sizeof("whatever") - 1);
227 rv = apr_memcache_add_server(memcache, ms);
236 memcache->server_func = my_server_func;
237 memcache->server_baton = baton;
238 found = apr_memcache_find_server_hash(memcache, 0);
246 apr_memcache_t *memcache;
252 rv = apr_memcache_create(pool, 1, 0, &memcache);
253 ABTS_ASSERT(tc, "memcache create failed", rv == APR_SUCCESS);
258 rv = apr_memcache_add_server(memcache, server);
309 apr_memcache_t *memcache;
316 rv = apr_memcache_create(pool, 1, 0, &memcache);
317 ABTS_ASSERT(tc, "memcache create failed", rv == APR_SUCCESS);
322 rv = apr_memcache_add_server(memcache, server);
337 rv = apr_memcache_replace(memcache, key, v, strlen(v) - 1, 0, 27);
341 rv = apr_memcache_add(memcache, key, v, strlen(v), 0, 27);
345 rv = apr_memcache_replace(memcache, key, "new", sizeof("new") - 1, 0, 27);
349 rv = apr_memcache_getp(memcache, pool, key, &result, &len, NULL);
354 rv = apr_memcache_add(memcache, key, v, strlen(v), 0, 27);
358 rv = apr_memcache_delete(memcache, key, 0);
368 apr_memcache_t *memcache;
375 rv = apr_memcache_create(pool, 1, 0, &memcache);
376 ABTS_ASSERT(tc, "memcache create failed", rv == APR_SUCCESS);
381 rv = apr_memcache_add_server(memcache, server);
384 rv = apr_memcache_set(memcache, prefix, "271", sizeof("271") - 1, 0, 27);
390 rv = apr_memcache_getp(memcache, pool, prefix, &result, &len, NULL);
395 rv = apr_memcache_incr(memcache, prefix, i, &new);
400 rv = apr_memcache_decr(memcache, prefix, i, &new);
406 rv = apr_memcache_getp(memcache, pool, prefix, &result, &len, NULL);
411 rv = apr_memcache_delete(memcache, prefix, 0);
421 apr_memcache_t *memcache;
427 rv = apr_memcache_create(pool, 1, 0, &memcache);
428 ABTS_ASSERT(tc, "memcache create failed", rv == APR_SUCCESS);
433 rv = apr_memcache_add_server(memcache, server);
449 rv = apr_memcache_set(memcache, key, v, strlen(v), 0, 27);
460 rv = apr_memcache_multgetp(memcache,
476 rv = apr_memcache_delete(memcache, key, 0);
488 apr_memcache_t *memcache;
495 rv = apr_memcache_create(pool, 1, 0, &memcache);
496 ABTS_ASSERT(tc, "memcache create failed", rv == APR_SUCCESS);
501 rv = apr_memcache_add_server(memcache, server);
516 rv = apr_memcache_set(memcache, key, v, strlen(v), 0, 27);
518 rv = apr_memcache_getp(memcache, pool, key, &result, &len, NULL);
522 rv = apr_memcache_getp(memcache, pool, "nothere3423", &result, &len, NULL);
533 rv = apr_memcache_delete(memcache, key, 0);