add setex to API to allow setting value with an expire period