add javadoc for getDataFromCache method