mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-09-07 22:11:57 +00:00
Delete a couple of TODO markers of monitoring stats now done
This commit is contained in:
parent
094803cf82
commit
e1a7e3564f
@ -40,7 +40,6 @@ transaction_logger = logging.getLogger("synapse.storage.txn")
|
|||||||
|
|
||||||
# TODO(paul):
|
# TODO(paul):
|
||||||
# * more generic key management
|
# * more generic key management
|
||||||
# * export monitoring stats
|
|
||||||
# * consider other eviction strategies - LRU?
|
# * consider other eviction strategies - LRU?
|
||||||
def cached(max_entries=1000):
|
def cached(max_entries=1000):
|
||||||
""" A method decorator that applies a memoizing cache around the function.
|
""" A method decorator that applies a memoizing cache around the function.
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
|
|
||||||
class LruCache(object):
|
class LruCache(object):
|
||||||
"""Least-recently-used cache."""
|
"""Least-recently-used cache."""
|
||||||
# TODO(mjark) Add hit/miss counters
|
|
||||||
# TODO(mjark) Add mutex for linked list for thread safety.
|
# TODO(mjark) Add mutex for linked list for thread safety.
|
||||||
def __init__(self, max_size):
|
def __init__(self, max_size):
|
||||||
cache = {}
|
cache = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user