added functionality for checking of cached object exist for key or has expired