diff options
author | Erik Johnston <erik@matrix.org> | 2015-02-11 16:12:59 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-02-11 16:12:59 +0000 |
commit | 41a9a76a99b5668217ed0bd97dda2b8689d13c1b (patch) | |
tree | d0326a7a299eef31fa89d8b91fa871732a148890 /synapse/config/database.py | |
parent | Merge branch 'develop' of github.com:matrix-org/synapse into timeout-federati... (diff) | |
parent | Merge pull request #65 from matrix-org/get_event_cache (diff) | |
download | synapse-41a9a76a99b5668217ed0bd97dda2b8689d13c1b.tar.xz |
Merge branch 'develop' of github.com:matrix-org/synapse into timeout-federation-requests
Diffstat (limited to 'synapse/config/database.py')
-rw-r--r-- | synapse/config/database.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/config/database.py b/synapse/config/database.py index daa161c952..87efe54645 100644 --- a/synapse/config/database.py +++ b/synapse/config/database.py @@ -24,6 +24,7 @@ class DatabaseConfig(Config): self.database_path = ":memory:" else: self.database_path = self.abspath(args.database_path) + self.event_cache_size = self.parse_size(args.event_cache_size) @classmethod def add_arguments(cls, parser): @@ -33,6 +34,10 @@ class DatabaseConfig(Config): "-d", "--database-path", default="homeserver.db", help="The database name." ) + db_group.add_argument( + "--event-cache-size", default="100K", + help="Number of events to cache in memory." + ) @classmethod def generate_config(cls, args, config_dir_path): |