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 {
|
||||
// users by tag/hour
|
||||
cmd.sadd(&user_key, &user_id).ignore()
|
||||
.expire(&user_key, TAG_EXPIRE as usize * 86400)
|
||||
.expire(&user_key, TAG_EXPIRE as usize * 3600)
|
||||
.ignore();
|
||||
}
|
||||
};
|
||||
|
@ -335,7 +335,7 @@ impl Store {
|
|||
let image_key = format!("i:{}", name);
|
||||
cmd.sadd(&image_key, image)
|
||||
.ignore()
|
||||
.expire(&image_key, TAG_EXPIRE as usize * 86400)
|
||||
.expire(&image_key, TAG_EXPIRE as usize * 3600)
|
||||
.ignore()
|
||||
.scard(&image_key);
|
||||
image_keys.push(image_key);
|
||||
|
|
Loading…
Reference in New Issue