add set/get methods to cache