Cache total stats in memory
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user