update prefix
This commit is contained in:
+1
-1
@@ -39,6 +39,6 @@ class CacheVideoApi(
|
||||
}
|
||||
|
||||
private companion object {
|
||||
const val PREFIX = "video-api"
|
||||
const val PREFIX = "video_api"
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ class CacheSavedMovieRepository(
|
||||
userId: Long
|
||||
) : SavedMovieRepository {
|
||||
private val ttl = 7.days
|
||||
private val prefix = "saved-movie:$userId"
|
||||
private val prefix = "saved_movie:$userId"
|
||||
|
||||
override suspend fun save(details: VideoDetails) {
|
||||
obtainKeys(details.id).forEach { redis.delete(it) }
|
||||
|
||||
Reference in New Issue
Block a user