update prefix

This commit is contained in:
2026-08-22 17:33:00 +03:00
parent a0d5843054
commit ebe29671d6
2 changed files with 2 additions and 2 deletions
@@ -39,6 +39,6 @@ class CacheVideoApi(
} }
private companion object { private companion object {
const val PREFIX = "video-api" const val PREFIX = "video_api"
} }
} }
@@ -15,7 +15,7 @@ class CacheSavedMovieRepository(
userId: Long userId: Long
) : SavedMovieRepository { ) : SavedMovieRepository {
private val ttl = 7.days private val ttl = 7.days
private val prefix = "saved-movie:$userId" private val prefix = "saved_movie:$userId"
override suspend fun save(details: VideoDetails) { override suspend fun save(details: VideoDetails) {
obtainKeys(details.id).forEach { redis.delete(it) } obtainKeys(details.id).forEach { redis.delete(it) }