This isn't possible (as of Couchbase 2.5.1). Currently, metadata (including the key) has to be held in RAM, to allow client requests to be able to quickly determine if a key exists.
Therefore in your example you wouldn't be able to store more than 3GB of keys (the bucket quota). Note even then you'd have no RAM left for actual document values, as they would always have to be read from disk.