added getters and setters for sort and page query and converted expiry duration in seconds