I'm using the following code to connect to Elasticache and have installed php-memcached and added /etc/php.d/memcached.ini - the connect doesn't error and seems to work:
$server_endpoint = "etc-etc-etc.expalp.cfg.apse1.cache.amazonaws.com";
$server_port = 11211;
$dynamic_client = new Memcached();
$dynamic_client->setOption(Memcached::OPT_CLIENT_MODE, Memcached::DYNAMIC_CLIENT_MODE);
$dynamic_client->addServer($server_endpoint, $server_port);
$dynamic_client->set('key', 'value', 60);
I have 2 questions:
How do I know if Consistant Hashing is enabled - I've read about its importance but don't know how to enable it or check its enabled.
Is there a way a can see what is written to Elasticache? I'm new to this and I would like to be able to confirm data is being written to the cache.
thank you