Align code with standard memcached module