ABC-73 Move session clean-up to daily task (#8095)

* Move session clean-up to daily task

* Split delete query into batches
Этот коммит содержится в:
Joram Wilander
2018-01-17 08:50:49 -05:00
коммит произвёл GitHub
родитель d35d9484f4
Коммит dce0616305
5 изменённых файлов: 103 добавлений и 22 удалений

Просмотреть файл

@@ -260,6 +260,7 @@ type SessionStore interface {
UpdateRoles(userId string, roles string) StoreChannel
UpdateDeviceId(id string, deviceId string, expiresAt int64) StoreChannel
AnalyticsSessionCount() StoreChannel
Cleanup(expiryTime int64, batchSize int64)
}
type AuditStore interface {