mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
19 lines
401 B
JavaScript
19 lines
401 B
JavaScript
|
/* eslint-disable
|
||
|
no-unused-vars,
|
||
|
*/
|
||
|
// TODO: This file was created by bulk-decaffeinate.
|
||
|
// Fix any style issues and re-enable lint.
|
||
|
let Redis
|
||
|
const RedisWrapper = require('../../infrastructure/RedisWrapper')
|
||
|
const rclient = RedisWrapper.client('websessions')
|
||
|
|
||
|
module.exports = Redis = {
|
||
|
client() {
|
||
|
return rclient
|
||
|
},
|
||
|
|
||
|
sessionSetKey(user) {
|
||
|
return `UserSessions:{${user._id}}`
|
||
|
}
|
||
|
}
|