- update: characters cache key lifetime

This commit is contained in:
2025-03-17 21:51:09 -04:00
parent cdf7bb3f15
commit f353a73658
2 changed files with 12 additions and 10 deletions

View File

@@ -61,7 +61,7 @@ impl CharacterRepository {
self.cache
.lock()
.await
.set(&cache_key, &character, 300)
.set(&cache_key, &character, 0)
.await
.map_err(|_| sqlx::Error::RowNotFound)?;
Ok(character)
@@ -164,7 +164,7 @@ impl CharacterRepository {
self.cache
.lock()
.await
.set(&cache_key, &characters, 300)
.set(&cache_key, &characters, 0)
.await
.map_err(|_| sqlx::Error::RowNotFound)?;
Ok(characters)