You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,7 @@ Casbin is a powerful and efficient open-source access control library for Golang
39
39
-[Get started](#get-started)
40
40
-[Policy management](#policy-management)
41
41
-[Policy persistence](#policy-persistence)
42
+
-[Transaction support](#transaction-support)
42
43
-[Policy consistence between multiple nodes](#policy-consistence-between-multiple-nodes)
43
44
-[Role manager](#role-manager)
44
45
-[Benchmarks](#benchmarks)
@@ -200,6 +201,29 @@ We also provide a [web-based UI](https://casbin.org/docs/admin-portal) for model
200
201
201
202
https://casbin.org/docs/adapters
202
203
204
+
## Transaction support
205
+
206
+
Casbin provides built-in support for transactional policy updates through the `TransactionalEnforcer`. This allows you to ensure atomic consistency between Casbin policy operations and business database operations.
See [TRANSACTION_GUIDE.md](TRANSACTION_GUIDE.md) for comprehensive documentation and [examples/transaction](examples/transaction) for working examples.
0 commit comments