public async Task SetPermission(string role, int resourceId, int permissionId, bool?isEnabled) { _cache.Clear(role, new ResourcePermissionKey { ResourceId = resourceId, PermissionId = permissionId }); await _permissionStore.SetPermissionAsync(role, resourceId, permissionId, null, isEnabled); }