Make CiderCacheEntry public.

Change-Id: Ib32b7af6fc399ac5bc646f06175cb68ef605d73a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/153400
Commit-Queue: Keerti Parthasarathy <keertip@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
Keerti Parthasarathy 2020-07-15 20:14:55 +00:00 committed by commit-bot@chromium.org
parent 4726b1b337
commit a2edb7976c

View file

@ -23,8 +23,15 @@ abstract class CiderByteStore {
void put(String key, List<int> signature, List<int> bytes);
}
class CiderCacheEntry {
final List<int> signature;
final List<int> bytes;
CiderCacheEntry(this.signature, this.bytes);
}
class CiderMemoryByteStore implements CiderByteStore {
final Map<String, _CiderCacheEntry> _map = {};
final Map<String, CiderCacheEntry> _map = {};
@override
List<int> get(String key, List<int> signature) {
@ -39,13 +46,6 @@ class CiderMemoryByteStore implements CiderByteStore {
@override
void put(String key, List<int> signature, List<int> bytes) {
_map[key] = _CiderCacheEntry(signature, bytes);
_map[key] = CiderCacheEntry(signature, bytes);
}
}
class _CiderCacheEntry {
final List<int> signature;
final List<int> bytes;
_CiderCacheEntry(this.signature, this.bytes);
}