class cache: add expire time