public SPPermissions Get(int userOrGroupId, PermissionsGetOptions options) { var permissions = (SPPermissions)cacheService.Get(CacheKey(options.ContentId, userOrGroupId), CacheScope.Context | CacheScope.Process); if (permissions == null) { permissions = permissionsService.Get(userOrGroupId, options); cacheService.Put(CacheKey(options.ContentId, userOrGroupId), permissions, CacheScope.Context | CacheScope.Process, new string[] { }, CacheTimeOut); } return(permissions); }