I am trying to fix
'Too many SOQL Queries Limit'
and wanted to implement static util methods to cache the SOQL Query results so that the query with the same condition is not queried multiple times. Here is my query:
[Select id, name From Profile Where id=: userInfo.getProfileId()];
How do i implement static util method to cache this query result?