'Sets the ttl (in seconds) for modified data.
*Note that running a select query with a ttl value will raise an exception*'

def ttl(self, ttl):

    clone = copy.deepcopy(self)
    clone._ttl = ttl
    return clone
