elbart / node-memcache

node.js memcached client
285 stars 64 forks source link

How to get unique token (for cas) from get call? #15

Closed jstockdale closed 12 years ago

jstockdale commented 12 years ago

Traditionally (ie. in php-land) the cas token is returned as an optional parameter passed by reference to the get call. With this library, how is one supposed to retrieve the cas token with the get() call for a given key?

Thanks!

elbart commented 12 years ago

I'm sorry but I have to say that CAS is not supported yet...

If I would build it, I would add the token as additional parameter to the callback.

jstockdale commented 12 years ago

Cool. Thanks!