<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,9 @@
+= 1.7.6 (unreleased)
+
+* Add option to configure the namespace separator string, for interop with Perl
+  which does not use a separator character:
+    MemCache.new(servers, :namespace_separator =&gt; '')
+
 = 1.7.5 (2009-09-09)
 
 * Fix ruby warnings (josh)</diff>
      <filename>History.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -29,7 +29,8 @@ class MemCache
     :logger       =&gt; nil,
     :no_reply     =&gt; false,
     :check_size   =&gt; true,
-    :autofix_keys =&gt; false
+    :autofix_keys =&gt; false,
+    :namespace_separator =&gt; ':',
   }
 
   ##
@@ -146,6 +147,7 @@ class MemCache
     @logger       = opts[:logger]
     @no_reply     = opts[:no_reply]
     @check_size   = opts[:check_size]
+    @namespace_separator = opts[:namespace_separator]
     @mutex        = Mutex.new if @multithread
 
     logger.info { &quot;memcache-client #{VERSION} #{Array(servers).inspect}&quot; } if logger
@@ -648,7 +650,7 @@ class MemCache
     if namespace.nil? then
       key
     else
-      &quot;#{@namespace}:#{key}&quot;
+      &quot;#{@namespace}#{@namespace_separator}#{key}&quot;
     end
   end
 </diff>
      <filename>lib/memcache.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1100,6 +1100,25 @@ class TestMemCache &lt; Test::Unit::TestCase
     assert_match(/test value/, output)
   end
 
+  def test_namespace_separator
+    cache = MemCache.new :namespace =&gt; 'ns', :namespace_separator =&gt; ''
+
+    server = FakeServer.new
+    server.socket.data.write &quot;STORED\r\n&quot;
+    server.socket.data.rewind
+
+    cache.servers = []
+    cache.servers &lt;&lt; server
+
+    assert_nothing_raised do
+      cache.set &quot;test&quot;, &quot;test value&quot;
+    end
+
+    output = server.socket.written.string
+    assert_match(/set nstest/, output)
+    assert_match(/test value/, output)
+  end
+
   def test_basic_unthreaded_operations_should_work
     cache = MemCache.new :multithread =&gt; false,
                          :namespace =&gt; 'my_namespace',</diff>
      <filename>test/test_mem_cache.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f03ce4dcdf85202a57c4c74ef9036ac8dea50b6d</id>
    </parent>
  </parents>
  <author>
    <name>Mike Perham</name>
    <email>mperham@gmail.com</email>
  </author>
  <url>http://github.com/mperham/memcache-client/commit/1e9d7d38437c524248bd06e5a4d088a8ec0d9e90</url>
  <id>1e9d7d38437c524248bd06e5a4d088a8ec0d9e90</id>
  <committed-date>2009-09-10T08:49:56-07:00</committed-date>
  <authored-date>2009-09-10T08:49:56-07:00</authored-date>
  <message>Add namespace_separator option</message>
  <tree>d4d97d0e568c5b832e53cb00df40f07fe55b02aa</tree>
  <committer>
    <name>Mike Perham</name>
    <email>mperham@gmail.com</email>
  </committer>
</commit>
