Add support for setex and ttl to namespace