update prefix
This commit is contained in:
+1
-1
@@ -39,6 +39,6 @@ class CacheVideoApi(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private companion object {
|
private companion object {
|
||||||
const val PREFIX = "video-api"
|
const val PREFIX = "video_api"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -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) }
|
||||||
|
|||||||
Reference in New Issue
Block a user