mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
Added rev_id column. Updated redis calls.
This commit is contained in:
parent
a9112f39ec
commit
3485b6268b
18 changed files with 133 additions and 79 deletions
|
|
@ -41,6 +41,12 @@ async function set(key, value) {
|
|||
return redis.set(key, value);
|
||||
}
|
||||
|
||||
async function del(key) {
|
||||
await connect();
|
||||
|
||||
return redis.del(key);
|
||||
}
|
||||
|
||||
async function connect() {
|
||||
if (!redis) {
|
||||
redis = process.env.REDIS_URL && (global[REDIS] || getClient());
|
||||
|
|
@ -49,4 +55,4 @@ async function connect() {
|
|||
return redis;
|
||||
}
|
||||
|
||||
export default { enabled, client: redis, log, connect, get, set };
|
||||
export default { enabled, client: redis, log, connect, get, set, del };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue