Cache use in Nette 2.1

Using cache without getting the cacheStorage like $container->getService() which is deprecated in Nette 2.1