Implemented getWithTtl