thobbs / phpcassa

PHP client library for Apache Cassandra
thobbs.github.com/phpcassa
MIT License
248 stars 78 forks source link

Multiple TTL for batch_insert #106

Closed mNantern closed 11 years ago

mNantern commented 11 years ago

For a batch I'm using the function batch_insert but it is not yet possible to specify a different TTL for each row.

With this commit batch_insert can use an array for the parameter TTL. The array must looks like array( key1 -> ttl1, key2 -> ttl2)

thobbs commented 11 years ago

Great, thanks very much! The tests are especially appreciated.