Memcached::Client#namespace= only sets the prefix on the connection, but didn't update the @prefix instance variable on Memcached::Client so the prefix would be lost when the connection is reset.
Setting the @prefix instance variable avoids that problem. I also thought it makes more sense to return that value for the Memcached::Client#namespace getter.
Memcached::Client#namespace= only sets the prefix on the connection, but didn't update the
@prefix
instance variable on Memcached::Client so the prefix would be lost when the connection is reset.Setting the
@prefix
instance variable avoids that problem. I also thought it makes more sense to return that value for the Memcached::Client#namespace getter.