put method

  1. @override
Future<void> put(
  1. String key,
  2. Uint8List bytes
)
override

Creates or replaces key.

Implementation

@override
Future<void> put(String key, Uint8List bytes) async {
  _objects[key] = bytes;
  _stats = ObjectStoreStats(
    gets: _stats.gets,
    puts: _stats.puts + 1,
    deletes: _stats.deletes,
    lists: _stats.lists,
    requestBytes: _stats.requestBytes + key.length + bytes.length,
    responseBytes: _stats.responseBytes,
  );
}