0
看着Couchbase Python客戶端,我看不到您如何指定存儲桶類型以創建存儲桶類型couchbase
。如何使用Python客戶端創建Couchbase存儲桶?
client不允許您指定存儲桶類型。
看着Couchbase Python客戶端,我看不到您如何指定存儲桶類型以創建存儲桶類型couchbase
。如何使用Python客戶端創建Couchbase存儲桶?
client不允許您指定存儲桶類型。
有效,它看起來就像是在包裝丟失,但你應該能夠做到這一點使用下面的代碼:
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中。