Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
eaa836e8
Commit
eaa836e8
authored
9 years ago
by
David Baker
Browse files
Options
Downloads
Patches
Plain Diff
Docs for treecache
parent
42eae463
No related branches found
Branches containing commit
Tags
v1.62.0rc2
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/util/caches/treecache.py
+5
-0
5 additions, 0 deletions
synapse/util/caches/treecache.py
with
5 additions
and
0 deletions
synapse/util/caches/treecache.py
+
5
−
0
View file @
eaa836e8
...
@@ -2,6 +2,11 @@ SENTINEL = object()
...
@@ -2,6 +2,11 @@ SENTINEL = object()
class
TreeCache
(
object
):
class
TreeCache
(
object
):
"""
Tree-based backing store for LruCache. Allows subtrees of data to be deleted
efficiently.
Keys must be tuples.
"""
def
__init__
(
self
):
def
__init__
(
self
):
self
.
root
=
{}
self
.
root
=
{}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment