put method
Put data
by cacheKey
with storeTime
timestamp.
Implementation
@override
Future<void> put(K cacheKey, V data, {int? storeTime}) async {
final box = await _ensureBox();
box.value = {
...box.value,
cacheKey: CacheEntry(
data,
storeTime: storeTime ?? DateTime.now().millisecondsSinceEpoch,
)
};
}