function memcache_test_menu in Zircon Profile 8
Same name and namespace in other branches
- 8.0 modules/memcache/tests/memcache_test.module \memcache_test_menu()
Implements hook_menu().
File
- modules/
memcache/ tests/ memcache_test.module, line 6
Code
function memcache_test_menu() {
$items['memcache-test/lock-acquire'] = array(
'title' => 'Lock acquire',
'page callback' => 'memcache_test_lock_acquire',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['memcache-test/lock-exit'] = array(
'title' => 'Lock acquire then exit',
'page callback' => 'memcache_test_lock_exit',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['memcache-test/set/%/%'] = array(
'title' => 'Set a value with a key',
'page callback' => 'memcache_test_set',
'page arguments' => array(
2,
3,
),
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['memcache-test/get/%'] = array(
'title' => 'Get a value from the cache',
'page callback' => 'memcache_test_get',
'page arguments' => array(
2,
),
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['memcache-test/wildcard-clear/%'] = array(
'title' => 'Clear the cache with a wildcard',
'page callback' => 'memcache_test_wildcard_flush',
'page arguments' => array(
2,
),
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['memcache-test/clear/%'] = array(
'title' => 'Clear the cache with a wildcard',
'page callback' => 'memcache_test_clear',
'page arguments' => array(
2,
),
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['memcache-test/clear-cache'] = array(
'title' => 'Clear the cache with a wildcard',
'page callback' => 'memcache_test_clear_cache',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
return $items;
}