Enable expiration and compress option on get function

I also use the class' set function instead of the object since it will eventually decide on what object to choose