Pass arguments while caching method results