mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 14:56:42 -04:00
Add a cache for get_event
This commit is contained in:
parent
d8324d5a2b
commit
f5a70e0d2e
6 changed files with 43 additions and 5 deletions
|
@ -38,8 +38,9 @@ class SQLBaseStoreTestCase(unittest.TestCase):
|
|||
return defer.succeed(func(self.mock_txn, *args, **kwargs))
|
||||
self.db_pool.runInteraction = runInteraction
|
||||
|
||||
hs = HomeServer("test",
|
||||
db_pool=self.db_pool)
|
||||
config = Mock()
|
||||
config.event_cache_size = 1
|
||||
hs = HomeServer("test", db_pool=self.db_pool, config=config)
|
||||
|
||||
self.datastore = SQLBaseStore(hs)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue