Skip to content

Commit

Permalink
feat: finish up UpdateAdapter (#177)
Browse files Browse the repository at this point in the history
Signed-off-by: ffyuanda <46557895+ffyuanda@users.noreply.github.com>
  • Loading branch information
ffyuanda authored Jul 19, 2021
1 parent 03b3cc8 commit d69a2df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions casbin/persist/adapters/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
from .file_adapter import FileAdapter
from .adapter_filtered import FilteredAdapter
from .update_adapter import UpdateAdapter
6 changes: 6 additions & 0 deletions casbin/persist/adapters/update_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@ def update_policy(self, sec, ptype, old_rule, new_policy):
This is part of the Auto-Save feature.
"""
pass

def update_policies(self, sec, ptype, old_rules, new_rules):
"""
UpdatePolicies updates some policy rules to storage, like db, redis.
"""
pass

0 comments on commit d69a2df

Please sign in to comment.