-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use stale event for the testOfflineScenarioLoadsStoredCache
- Loading branch information
1 parent
a8d0f76
commit 197bb5e
Showing
4 changed files
with
26 additions
and
15 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
15 changes: 15 additions & 0 deletions
15
Provider/src/main/java/dev/openfeature/contrib/providers/cache/DiskStorage.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,15 @@ | ||
package dev.openfeature.contrib.providers.cache | ||
|
||
import dev.openfeature.contrib.providers.client.ResolvedFlag | ||
import dev.openfeature.sdk.EvaluationContext | ||
|
||
interface DiskStorage { | ||
fun store( | ||
resolvedFlags: List<ResolvedFlag>, | ||
resolveToken: String, | ||
evaluationContext: EvaluationContext | ||
): CacheData | ||
fun read(): CacheData? | ||
|
||
fun clear() | ||
} |
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