Cache total stats in memory

This commit is contained in:
2021-11-03 21:24:23 +01:00
parent 492c88c5b2
commit bd6eafd9f7
8 changed files with 177 additions and 36 deletions

View File

@@ -15,3 +15,10 @@ func TestMemoryStoreWithCache(t *testing.T) {
s := store.NewCachingStore(backend)
testLoginAttemptStore(s, t)
}
func BenchmarkMemoryStore(b *testing.B) {
setupFunc := func() store.LoginAttemptStore {
return &store.MemoryStore{}
}
benchmarkLoginAttemptStore(setupFunc, b)
}