question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is there a way to do mgetBuffer()? I want mget that returns array of Buffers. Can’t find anything in documentation…

UPD: answering my own question. Apparently, there IS mgetBuffer(), it’s just missing in the typescript typings for some reason!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kirillgroshkovcommented, Sep 10, 2019

@knoxcard thanks for asking.

I think these’s still an issue with typescript typings. But also I see that typings are from external package from DefinitelyTyped (@types/ioredis). Then yes, you probably can close this issue.

But just out of curiosity, why doesn’t ioredis export types in package.json, so it can be used without external types from @types/ioredis? It should be quite trivial to do.

0reactions
kirillgroshkovcommented, Dec 16, 2020

@kirillgroshkov I’m lost. I can’t find mgetBuffer anywhere: @types/ioredis doesn’t declare it and ioredis doesn’t include its own types. What am I missing?

Yes, that’s the same experience that I had. And the conclusion was that it’s indeed missing in Types, but exists in the Runtime (in js). So, I used it despite them being missing in Types.

Read more comments on GitHub >

github_iconTop Results From Across the Web

MemoryStream.GetBuffer Method (System.IO) - Microsoft Learn
Returns the array of unsigned bytes from which this stream was created.
Read more >
When is GetBuffer() on MemoryStream ever useful?
GetBuffer() always assumes you know the structure of the data fed into the string (and that's its use) ...
Read more >
StringWriter getBuffer() method in Java with Examples
The getBuffer() method of StringWriter Class in Java is used to get the StringBuffer representation of this StringWriter instance.
Read more >
[Tip]:MemoryStream.GetBuffer() vs. MemoryStream.ToArray()
GetBuffer() method to retrieve the text inside the stream. ... Tip: use ToArray instead of GetBuffer, ToArray works when the MemoryStream is ...
Read more >
Use of CString::GetBuffer() - Google Groups
> of the cstring and 32,000 is the maximum length of that char*. Hmm..., no. The parameter passed to GetBuffer() specifies a minimun...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found