casbin-redis-watcher
casbin-redis-watcher copied to clipboard
Redis watcher for Casbin https://github.com/casbin/casbin
Extended watcher with option to be able to configure subscription reconnect threshold and added subscription failure callback.
When I run the test, I found out it stuck, so I run it with flag --race, and there's severe data race problem ``` WARNING: DATA RACE Read at 0x00c000118a70...
We are using Casbin Redis Watcher to help synch-up the policies among different Casbin nodes. The way the Watcher is implemented is to re-load the whole policy table during update....
What is the difference between the use of setup callback and update in the case of multiple instances?
add chan to fix bug for using transaction and watcher