Use atomic setex call instead of set and expire

Redis has [setex](http://redis.io/commands/setex) command which is the better alternative to `set` + `expire`.