feat: add unified cache policy primitives

This commit is contained in:
qzl
2026-03-20 15:21:52 +08:00
parent cbbed29a75
commit 035ca46bd0
4 changed files with 91 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
class CacheKey {
final String value;
const CacheKey(this.value);
@override
String toString() => value;
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other is CacheKey && other.value == value);
}
@override
int get hashCode => value.hashCode;
}