function dmemcache_key in Memcache API and Integration 5
Same name and namespace in other branches
- 5.2 dmemcache.inc \dmemcache_key()
- 6 dmemcache.inc \dmemcache_key()
- 7 dmemcache.inc \dmemcache_key()
3 calls to dmemcache_key()
- dmemcache_delete in ./
dmemcache.inc - Deletes an item from the cache.
- dmemcache_get in ./
dmemcache.inc - Retrieve a value from the cache.
- dmemcache_set in ./
dmemcache.inc - Place an item into memcache
File
- ./
dmemcache.inc, line 218
Code
function dmemcache_key($key, $bin = 'cache') {
static $prefix;
// memcache_key_prefix can be set in settings.php to support site namespaces
// in a multisite environment.
if (empty($prefix)) {
$prefix = variable_get('memcache_key_prefix', '');
}
$full_key = ($prefix ? $prefix . '-' : '') . $bin . '-' . $key;
return urlencode($full_key);
}