mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 14:47:14 +01:00
Add usage.
This commit is contained in:
parent
345dee5720
commit
2ce62c1023
4 changed files with 29 additions and 2 deletions
|
|
@ -49,6 +49,11 @@ async function deleteSession(id) {
|
|||
return deleteObject(`session:${id}`);
|
||||
}
|
||||
|
||||
async function fetchUserBlock(userId: string) {
|
||||
const key = `user:block:${userId}`;
|
||||
return redis.get(key);
|
||||
}
|
||||
|
||||
export default {
|
||||
fetchWebsite,
|
||||
storeWebsite,
|
||||
|
|
@ -59,5 +64,6 @@ export default {
|
|||
fetchSession,
|
||||
storeSession,
|
||||
deleteSession,
|
||||
fetchUserBlock,
|
||||
enabled: redis.enabled,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue