This repository has been archived by the owner on Mar 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #153 from Z-Jais/master
Update & fix bugs
- Loading branch information
Showing
50 changed files
with
443 additions
and
1,256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package fr.ziedelth.caches | ||
|
||
import java.util.* | ||
|
||
open class AnimeCacheKey( | ||
open val anime: UUID | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package fr.ziedelth.caches | ||
|
||
open class CountryCacheKey( | ||
open val tag: String | ||
) { | ||
override fun equals(other: Any?): Boolean { | ||
if (this === other) return true | ||
if (other !is CountryCacheKey) return false | ||
|
||
if (tag != other.tag) return false | ||
|
||
return true | ||
} | ||
|
||
override fun hashCode(): Int { | ||
return tag.hashCode() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package fr.ziedelth.caches | ||
|
||
data class DayCountryCacheKey( | ||
val day: Int, | ||
override val tag: String, | ||
) : CountryCacheKey(tag) |
9 changes: 9 additions & 0 deletions
9
src/main/kotlin/fr/ziedelth/caches/PaginationAnimeCacheKey.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package fr.ziedelth.caches | ||
|
||
import java.util.* | ||
|
||
data class PaginationAnimeCacheKey( | ||
val page: Int, | ||
val limit: Int, | ||
override val anime: UUID, | ||
) : AnimeCacheKey(anime) |
7 changes: 7 additions & 0 deletions
7
src/main/kotlin/fr/ziedelth/caches/PaginationCountryCacheKey.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package fr.ziedelth.caches | ||
|
||
data class PaginationCountryCacheKey( | ||
val page: Int, | ||
val limit: Int, | ||
override val tag: String, | ||
) : CountryCacheKey(tag) |
10 changes: 10 additions & 0 deletions
10
src/main/kotlin/fr/ziedelth/caches/PaginationSimulcastCountryCacheKey.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package fr.ziedelth.caches | ||
|
||
import java.util.* | ||
|
||
data class PaginationSimulcastCountryCacheKey( | ||
val page: Int, | ||
val limit: Int, | ||
val simulcast: UUID, | ||
override val tag: String, | ||
) : CountryCacheKey(tag) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.