pingles / clj-hector

Simple Cassandra client for Clojure
42 stars 19 forks source link

Allow specifying a ttl when adding columns. #10

Closed nickmbailey closed 12 years ago

nickmbailey commented 12 years ago

Optional ttl param for the put function. Was looking at possibly adding a ttl option to defschema as well and automatically setting the ttl based on that. The put function currently doesn't use the options from defschema and it wasn't exactly straightforward to add so I left that out for now.

I kind of think some refactoring could be done around that part of the code. Not sure if you/anyone else is using this somewhere that might be worried about compatibility but I might send a pull request with some changes to that stuff.

pingles commented 12 years ago

Thanks for that Nick. Definitely agree about the refactoring- would love to get some pull requests for that. I'm hoping to grab a day or two over the next few weeks to have a play and try and find tidier solutions.