add api for sets

add api to support setx (set with ttl)