this example explains memcached like server which using protocol buffers.
- php 5.3 higher
- php-uv (https://github.com/chobie/php-uv/)
protoc --plugin=../../contrib/protoc-gen-php message.proto --php_out=proto -I . -I /usr/local/include
php server.php
you need to run server process when playing this example.
// php client.php SET <KEY> <VALUE>
php client.php SET chobie "Helo World"
// php client.php GET <KEY>
php client.php GET chobie