cave/store: fix TAG_EXPIRE multiplication
This commit is contained in:
parent
57a9422d74
commit
aeee95fa13
|
@ -292,7 +292,7 @@ impl Store {
|
||||||
if let Some(user_id) = &user_id {
|
if let Some(user_id) = &user_id {
|
||||||
// users by tag/hour
|
// users by tag/hour
|
||||||
cmd.sadd(&user_key, &user_id).ignore()
|
cmd.sadd(&user_key, &user_id).ignore()
|
||||||
.expire(&user_key, TAG_EXPIRE as usize * 86400)
|
.expire(&user_key, TAG_EXPIRE as usize * 3600)
|
||||||
.ignore();
|
.ignore();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -335,7 +335,7 @@ impl Store {
|
||||||
let image_key = format!("i:{}", name);
|
let image_key = format!("i:{}", name);
|
||||||
cmd.sadd(&image_key, image)
|
cmd.sadd(&image_key, image)
|
||||||
.ignore()
|
.ignore()
|
||||||
.expire(&image_key, TAG_EXPIRE as usize * 86400)
|
.expire(&image_key, TAG_EXPIRE as usize * 3600)
|
||||||
.ignore()
|
.ignore()
|
||||||
.scard(&image_key);
|
.scard(&image_key);
|
||||||
image_keys.push(image_key);
|
image_keys.push(image_key);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user