arthurnn / memcached

A Ruby interface to the libmemcached C client
Academic Free License v3.0
432 stars 125 forks source link

Make namespace setter persist across connections #172

Closed dylanahsmith closed 7 years ago

dylanahsmith commented 7 years ago

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.

arthurnn commented 7 years ago

thanks ❤️