UCE Docs / memcache_escape_key

Signature

String memcache_escape_key(String key)

Parameters

key : application key
return value : memcache-safe key string

Normalizes whitespace in a memcache key to underscores before it is placed into a text protocol command.

Example

print(memcache_escape_key("a key with spaces"), "\n");
Output
a_key_with_spaces