Skip to content

Commit

Permalink
docs: Update Enforcers.mdx for pycasbin (#211)
Browse files Browse the repository at this point in the history
Update Enforcers.mdx for pycasbin. Add AsyncEnforcer and FastEnforcer.
  • Loading branch information
BustDot authored Sep 17, 2023
1 parent 7516087 commit 83aeaee
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/Enforcers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,19 @@ A complete list of Casbin enforcers is provided below. Any 3rd-party contributio
| [SyncedEnforcer](https://github.com/casbin/casbin/blob/master/enforcer_synced.go) | Casbin | The `SyncedEnforcer` is based on the `Enforcer` and provides synchronized access. It is thread-safe. |
| [SyncedCachedEnforcer](https://github.com/casbin/casbin/blob/master/enforcer_cached_synced.go)| Casbin | The `SyncedCachedEnforcer` wraps the `Enforcer` and provides decision sync cache. |

```mdx-code-block
</TabItem>
<TabItem value="Python" label="Python" default>
```

| Enforcer | Author | Description |
|---------------------------------------------------------------------------------------------|--------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Enforcer](https://github.com/casbin/pycasbin/blob/master/casbin/enforcer.py) | Casbin | The `Enforcer` is the basic structure for users to interact with Casbin policies and models. You can find more details about the `Enforcer` API [here](/docs/management-api). |
| [DistributedEnforcer](https://github.com/casbin/pycasbin/blob/master/casbin/distributed_enforcer.py) | Casbin | The `DistributedEnforcer` supports multiple instances in distributed clusters. It wraps the `SyncedEnforcer` for the dispatcher. You can find more details about the dispatcher [here](/docs/dispatchers#distributedenforcer). |
| [SyncedEnforcer](https://github.com/casbin/pycasbin/blob/master/casbin/synced_enforcer.py) | Casbin | The `SyncedEnforcer` is based on the `Enforcer` and provides synchronized access. It is thread-safe. |
| [AsyncEnforcer](https://github.com/casbin/pycasbin/blob/master/casbin/async_enforcer.py)| Casbin | The `AsyncEnforcer` provides async API. |
| [FastEnforcer](https://github.com/casbin/pycasbin/blob/master/casbin/fast_enforcer.py)| Casbin | The `FastEnforcer` uses a new model which is 50x faster than the normal model. You can find more [here](https://github.com/wakemaster39/fastbin) |

```mdx-code-block
</TabItem>
</Tabs>
Expand Down

0 comments on commit 83aeaee

Please sign in to comment.