0
我有这样的代码:PHP的Memcached的OPT_PREFIX_KEY没有被应用
$connection = new memcached();
$connection->setOption(memcached::OPT_PREFIX_KEY, 'server1:');
$connection->set("foo", "hello");
当我运行此代码,然后拿在phpmemcachedadmin一看,我看关键foo
,而不是server1:foo
。
我在这里错过了什么吗?