node-casbin
node-casbin copied to clipboard
Does node-casbin support StartAutoLoadPolicy
I am using node-casbin in AWS Lambda functions in conjunction with casbin-dynamodb-adapter. Instead of loading the policy on each lambda call, I was wondering node-casbin supports "StartAutoLoadPolicy", where the policy in each lambda instance would be updated on any "saved" policy change.
@Gabriel-403 @Zxilly @kingiw @nodece
@Shivansh-yadav13
/cc @nodece @Zxilly
Maybe you should use watcher
mechanic. It will update the in-memory policy when the policy in database updated.
@nodece and I were planning to implement WatcherEX
WatcherEx has already be implemented: https://github.com/casbin/node-casbin/search?q=WatcherEX&type=
Closed here