This sounds more like a memcached question than a gRPC question, however I
guess you could use a thread local variable to track your memcached
connection?

On Fri, Jan 13, 2017 at 12:48 AM <[email protected]> wrote:

> I'm using grpc(c++) and libmemcached.
> for the thread safety of libmemcached, I need to connect to memcached in
> every server function and disconnect before the function returns.
> is there any way to make the memcached connection thread level? that's I
> could reuse memcached connections of the same thread.
>
> thanks.
>
> --
> You received this message because you are subscribed to the Google Groups "
> grpc.io" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/grpc-io.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/grpc-io/016596ed-296e-412d-9296-d0004abe147a%40googlegroups.com
> <https://groups.google.com/d/msgid/grpc-io/016596ed-296e-412d-9296-d0004abe147a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/CAAvp3oNJrbW%2Bz8BxqwO8kuqtvHZFe8V-TrJj-ERdigBY0ojzrw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to