moved __invoke method to AbstractCache class