add caching for topic content db calls (Postgres only)
authorJustin Wind <justin.wind+git@gmail.com>
Thu, 5 Aug 2021 22:11:21 +0000 (15:11 -0700)
committerJustin Wind <justin.wind+git@gmail.com>
Fri, 6 Aug 2021 00:17:29 +0000 (17:17 -0700)
commit3fae9b64c5c70ad52376558caa71db99778541b0
treec30035e04919b528da688bb884b4e10363ae2853
parent4f64b8910e1295207a42c757cb81c9b0e9ee3be2
add caching for topic content db calls (Postgres only)

Cache topicContentGetById responses, to avoid many large-payload db
calls when updating subscribers.  Currently only enabled for Postgres,
which uses the LISTEN/NOTIFY mechanism on topic updates to invalidate
cache entries, ensuring data consistency.
bin/authUserAdd.js
config/default.js
config/test.js
src/db/postgres/index.js
src/db/postgres/listener.js [new file with mode: 0644]
test/src/db/postgres-listener.js [new file with mode: 0644]
test/src/db/postgres.js