Adding interface to cache to set expiration