feat: add unified cache policy primitives
This commit is contained in:
Vendored
+17
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user