add cache structure

I've used SETEX instead of PSETEX to keep compatibility with Redis 2.4, but we can change this