basho / riak-php-client

PHP clients for Riak
Apache License 2.0
160 stars 69 forks source link

Add support for an http HEAD method [JIRA: CLIENTS-91] #62

Closed eveiga closed 9 years ago

eveiga commented 10 years ago

Hello,

Sorry for reopening this discussion, but I think that an http HEAD method would be quite useful to check if a given key exists!

This technique is being used by other clients like riak-js (https://github.com/mostlyserious/riak-js/blob/master/lib/http-client.js#L102)!

Are you considering the introduction? I can make a pull request with it, doesn't seem to hard..

Best regards

kuenishi commented 10 years ago

Your contribution would be welcomed and appreciated! Don't forget X-Riak-Deleted tombstone!

eveiga commented 10 years ago

What do you think of adding a method named "exists" or "keyExists" to the Bucket class?

kuenishi commented 10 years ago

exists seems good.

eveiga commented 10 years ago

Hi @kuenishi.

Something like this? -> https://github.com/basho/riak-php-client/pull/64

christophermancini commented 9 years ago

This was merged and should have been closed.

Basho-JIRA commented 9 years ago

Was already completed and merged.

_[posted via JIRA by Christopher Mancini]_