PHP: Clear all keys in bucket
Fri, 07/22/2011 - 18:37
Is there a way to clear all the keys in a bucket from php?
Mon, 07/25/2011 - 13:58
Yes, just please don't use it before 1.7.1 as there are known issues.
We will be releasing that today, but to do this on previous versions you can delete and recreate the bucket.
Perry
Mon, 07/25/2011 - 14:03
Is there a way to drop and create a bucket from the memcachedD client?
Or can a membase client drop and create a bucket?
Mon, 07/25/2011 - 14:06
No, unfortunately you'd have to run that separately. Membase has a REST API that can be accessed from anywhere, but there are no direct client implementations: http://www.couchbase.org/wiki/display/membase/Membase+Management+REST+API
Flush seems to be it!
http://www.php.net/manual/en/memcache.flush.php