mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 21:01:33 +02:00
Complete Decafeinate of User Feature GitOrigin-RevId: b8d7ebc59c4f6673392b4a0f33fb11e002d5a3a0
14 lines
289 B
JavaScript
14 lines
289 B
JavaScript
const RedisWrapper = require('../../infrastructure/RedisWrapper')
|
|
const rclient = RedisWrapper.client('websessions')
|
|
|
|
const UserSessionsRedis = {
|
|
client() {
|
|
return rclient
|
|
},
|
|
|
|
sessionSetKey(user) {
|
|
return `UserSessions:{${user._id}}`
|
|
}
|
|
}
|
|
module.exports = UserSessionsRedis
|