getBufferWithMetadata method

Future<KVNamespaceGetWithMetadataResult<ByteBuffer?>> getBufferWithMetadata(
  1. String name, {
  2. int? cacheTtl,
})

Implementation

Future<KVNamespaceGetWithMetadataResult<ByteBuffer?>> getBufferWithMetadata(
  String name, {
  int? cacheTtl,
}) async {
  return KVNamespaceGetWithMetadataResult._(
    await _delegate.getWithMetadata(
      name,
      interop.KVNamespaceGetOptions()
        ..type = 'arrayBuffer'
        ..cacheTtl = cacheTtl,
    ),
  );
}