elbart / node-memcache

node.js memcached client
285 stars 64 forks source link

Storing integers #6

Closed Emmerman closed 13 years ago

Emmerman commented 13 years ago

client.set('key', 123); will not work because var tml_buf = new Buffer(value); creates buffer with 123 bytes length (http://nodejs.org/docs/v0.4.3/api/buffers.html#new_Buffer)

I think "var tml_buf = new Buffer(value.toString());" can help.

elbart commented 13 years ago

Thanks Emmerman for this report.

wrote a simple test and fixed as you suggested.

Best Regards.

Tim