added ttl() method
@0.3.0 release