func (b *Bucket) getReplica(key string, valuePtr interface{}, replicaIdx int) (Cas, error) { return b.hlpGetExec(valuePtr, func(cb ioGetCallback) (pendingOp, error) { op, err := b.client.GetReplica([]byte(key), replicaIdx, gocbcore.GetCallback(cb)) return op, err }) }
func (b *Bucket) getAndLock(key string, lockTime uint32, valuePtr interface{}) (Cas, error) { return b.hlpGetExec(valuePtr, func(cb ioGetCallback) (pendingOp, error) { op, err := b.client.GetAndLock([]byte(key), lockTime, gocbcore.GetCallback(cb)) return op, err }) }