use default decoder for invalid flag
add binding for memcached_generate_hash