Try
var cacheKey = RoleId + "@" + (TenantId ?? 0); _cacheManager.GetRolePermissionCache().Remove(cacheKey);
I tried iCacheManager.GetRolePermissionCache().Remove("68@6"); but the key "n:AbpZeroRolePermissions,c:68@6" is still on redis cache server. I think I have problem with ICacheManager.
I using the tenant's Id on here:
Thanks.
I tried remove directly the key cache as using iCacheManager.GetRolePermissionCache().Remove("n:AbpZeroRolePermissions,c:68@6"); but it's not working.
i tried add or remove the permissions of a role, but the content is still not change on redis cache (redis-cli).
Is web server 2 an angular application? No, on server 1 (include backend .net core + angular application) for admin, on server 2: (.net core + angular application) for customer users.
After the user logout and login on the product application again but still not get the latest permission information.
I'm using ICacheManager to remove key("n:AbpZeroRolePermissions,c:1@0") on redis server but it is not working, it's still on redis server.
_cacheManager.GetCache(KEY).Remove(VALUE);
Thanks.