2013-01-25 68 views

回答

2

有效,它看起來就像是在包裝丟失,但你應該能夠做到這一點使用下面的代碼:

couchbase = Couchbase("127.0.0.1:8091", "Administrator", "password") 
#get the rest interface 
rest = couchbase._rest() 
rest.create_bucket(bucket='myBucket', 
        ramQuotaMB=160, 
        authType='sasl', 
        saslPassword='password', 
        replicaNumber=0, 
        bucketType='couchbase') 

您可以發送couchbase或memcached的

我會記錄錯誤並且在高級API中。

相關問題