aboutsummaryrefslogtreecommitdiff
path: root/syncapi/storage/sqlite3/syncserver.go
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2020-04-22 13:00:05 +0100
committerGitHub <noreply@github.com>2020-04-22 13:00:05 +0100
commita466e9e9cc86e04b4d28de45cd44199916664768 (patch)
tree70e234ac80ade783acdccadb24f27395712b5748 /syncapi/storage/sqlite3/syncserver.go
parent71f9d35b7c2f1531b383f115ad3ab23e8d1ed0a5 (diff)
LRU cache for room versions in RS query API (#976)
* Experimental LRU cache for room versions * Don't accidentally try to type-assert nil * Also reduce hits on query API * Use hashicorp implementation which mutexes for us * Define const for max cache entries * Rename to be specifically immutable, panic if we try to mutate a cache entry * Review comments * Remove nil guards, give roomserver integration test a cache * go mod tidy
Diffstat (limited to 'syncapi/storage/sqlite3/syncserver.go')
0 files changed, 0 insertions, 0 deletions