incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shuge Lee <shuge....@gmail.com>
Subject how to store list data in Apache Cassndra ?
Date Tue, 06 Apr 2010 08:49:16 GMT
Dear firends:

how to store list data in Apache Cassndra ?

For example:

user['lee'] = {
    'name': 'lee',
    'age'; '21',
    'girls': ['java', 'actionscript', 'python'],
}

Notice key `gils`

I using pycassa (a python lib of cassandra)

import pycassa
client = pycassa.connect()
cf = pycassa.ColumnFamily(client, 'mygame', 'user')

key = '1234567890'
value = {
    'name': 'Lee Li',
    'age'; '21',
    'girls': ['java', 'actionscript', 'python'],
}

cf.insert(key, value)


Oops, get error while save a `value` like above.

So, how to store list data in Apache Cassndra ?


Thanks for reply.




-- 
Shuge Lee | Lee Li

Mime
View raw message