Closed Lce-Lemon closed 11 months ago
@nodece @Shivansh-yadav13
@Lce-Lemon Casbin is memory-first and memory cannot be removed. You need to use watcher to sync between multiple instances: https://casbin.org/docs/watchers/
@Lce-Lemon Casbin is memory-first and memory cannot be removed. You need to use watcher to sync between multiple instances: https://casbin.org/docs/watchers/
When using a Watcher in a concurrent environment with frequent permission updates, it may lead to frequent reloading of policy, impacting the performance of the service, especially when there are a large number of policies. In scenarios with concurrent operations and the addition of instances, there might be differences in policy data among multiple instances.
When there are multiple instances, there are differences in the cache between instances.
Can the cache stored in memory here be placed in Redis?