Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.NET Core Compatibility #6

Open
derFunk opened this issue Oct 12, 2016 · 37 comments
Open

.NET Core Compatibility #6

derFunk opened this issue Oct 12, 2016 · 37 comments
Labels
feature-request A feature should be added or improved.

Comments

@derFunk
Copy link

derFunk commented Oct 12, 2016

Hi,

are there any plans to make this lib compatible to .NET Core?
If not, is there something else we can use for Cluster Discovery etc for .NET Core?

@normj
Copy link
Contributor

normj commented Oct 12, 2016

I would like to be first we need the EnyimMemcached dependency to be updated to .NET Core.

@derFunk
Copy link
Author

derFunk commented Oct 12, 2016

@normj
Copy link
Contributor

normj commented Oct 12, 2016

Thanks, I didn't realize that they put out a separate package for it. I'll take a look to see what it will take.

@derFunk
Copy link
Author

derFunk commented Oct 12, 2016

Configuration Management will be the biggest part IMHO. See https://docs.asp.net/en/latest/fundamentals/configuration.html.

@jeffbromberger
Copy link

@normj any updates on being able to use ElastiCache from .NET core?

@normj
Copy link
Contributor

normj commented Dec 29, 2016

I haven't had a chance yet to work on this but it is still on my radar.

@bcuff
Copy link

bcuff commented Jan 17, 2017

Adding my 👍 to this issue.

@alanedwardes
Copy link

Also very interested in this too. Is there a plan around the configuration portions of this library?

Asking because if I fork it for .NET Core, I want to make sure I go in roughly the same direction so replacing it with the official version later down the line is easier.

@rknewbow
Copy link

@normj Is there any update on this?

@bcuff
Copy link

bcuff commented May 15, 2017

@rknewbow I have a fork where i've ported to .NET core: https://github.com/bcuff/elasticache-cluster-config-net

It works, but it's not very pretty so I haven't made a PR.

@rknewbow
Copy link

@bcuff Thanks! I'll take a look. It doesn't have to be pretty if it works.

@rknewbow
Copy link

@bcuff Wanted to let you know that your fork is working for me. Thanks again!

@bcuff
Copy link

bcuff commented May 16, 2017

@rknewbow you're welcome. glad it was helpful.

@akinzo1
Copy link

akinzo1 commented Jun 6, 2017

Looks like the official version isn't available atm, or is it? About to use @bcuff fork

@akinzo1
Copy link

akinzo1 commented Jun 15, 2017

Hi @bcuff . I am using your fork. It works in a .net core web application, but it doesn't work with lambda, which is also .net core. Are you getting it to work in a lambda project by any chance?

@bcuff
Copy link

bcuff commented Jun 15, 2017

I've never tried it on lambda. What is the issue you're seeing?

@akinzo1
Copy link

akinzo1 commented Jun 15, 2017

Thanks for the response @bcuff . It can't connect to my node. I get the following error message. I was on the phone with AWS, and we confirmed that the node has been configured correctly.

Error Enyim.Caching.MemcachedClient: Create PooledSocket
Error Enyim.Caching.MemcachedClient: Could not init pool.
Debug Enyim.Caching.MemcachedClient: Mark as dead was requested for Unspecified/mynodeurl.cache.amazonaws.com:11211
Debug Enyim.Caching.MemcachedClient: FailurePolicy.ShouldFail(): True
Warning Enyim.Caching.MemcachedClient: Marking node Unspecified/mynodeurl.cache.amazonaws.com:11211 as dead
Debug Enyim.Caching.MemcachedClient: Node Unspecified/mynodeurl.cache.amazonaws.com:11211 is dead.
Debug Enyim.Caching.MemcachedClient: Starting the recovery timer.
Debug Enyim.Caching.MemcachedClient: Timer started.
Information Enyim.Caching.MemcachedClient: MemcachedInitPool-cost: 43.048ms
Debug Enyim.Caching.MemcachedClient: Acquiring stream from pool. Unspecified/mynodeurl.cache.amazonaws.com:11211
Debug Enyim.Caching.MemcachedClient: Pool is dead or disposed, returning null. Unspecified/mynodeurl.cache.amazonaws.com:11211
EnyimMemcached Started.

@bcuff
Copy link

bcuff commented Jun 15, 2017

Hey @akinzo1,

This looks like it might not be able to connect to the nodes. Have you tried your lambda by specifying the node names explicitly rather than using this plugin? If that doesn't work either then I would suspect that there is something wrong with your security group settings. See here about configuring your lambda to access resources within a VPC.

@akinzo1
Copy link

akinzo1 commented Jun 16, 2017

Got it. Thanks @bcuff

@timtalbot
Copy link

+1 for official .NET Core support, would really like to be able to use this within a C# lambda in AWS

@eshenem
Copy link

eshenem commented Jul 31, 2017

+1 for official .NET Core support...

@amruthbinish
Copy link

I have the plan to migrate projects ((Framework 4.6.2 ) to .NET core. The existing project we are using Enyim.Caching, Version=2.16.0.0 . Can any one answer ,Is Enyim.Caching support ,NET Core ? if yes which Version of .NET Core version (Core 1.0 and 2.0) ? and which .NET Standard version it's support? Thanks

@bcuff
Copy link

bcuff commented Aug 8, 2017

I don't think the main Enyim will ever support .NET core. There is a fork that everyone uses for .NET Core here - https://www.nuget.org/packages/EnyimMemcachedCore/

@amruthbinish
Copy link

Thanks !!

@amruthbinish
Copy link

Do you have any idea its support information about FluentAssertions.Core, Version=4.19.2.0 and FluentAssertions , Version=4.19.2.0 as well ?

@bcuff
Copy link

bcuff commented Aug 8, 2017

I'm not sure I understand the question. If that is a dependency of this project then it should just be a test dependency.

@kaurranjeet12
Copy link

Hi bcuff,

I want to use your fork too in my lambda core project. I am new to github so not sure how to use it. Are you releasing an official version anytime soon?

Thanks,
Jassi

@bcuff
Copy link

bcuff commented Aug 23, 2017

@kaurranjeet12 I wasn't planning on it, but since so many people seem to be asking about it maybe I should. @normj Do you want a PR for .NET Core support?

In the mean time you would just have to build my fork from source.

@kaurranjeet12
Copy link

@bcuff thank you. It works fine with API running on core 1.0. but not working with my AWS lambda function. I am getting error saying netstandard1.6.1 can't be used with core 1.0

@bcuff
Copy link

bcuff commented Aug 24, 2017

@kaurranjeet12 You could try downgrading to netstandard 1.6.0 or 1.5 to get it working on lambda. It looks like AWS Lambda only supports the 1.0 runtime at the moment. Hopefully they'll add support for 1.1 and 2.0 soon.

@normj
Copy link
Contributor

normj commented Aug 24, 2017

@kaurranjeet12 The earliest version of EnyimMemcachedCore depends on NETStandard.Library 1.6.1 which is part of .NET Core 1.1 which is why it doesn't work in Lambda. The Lambda environment doesn't have .NET Core 1.1 bits on it.

@kaurranjeet12
Copy link

kaurranjeet12 commented Aug 24, 2017 via email

@rajkumars82
Copy link

@bcuff support for .NET Core 2.1 with EnyimMemcachedCore 2.1.8?

@bcuff
Copy link

bcuff commented Sep 5, 2018

Feel free to use my fork - https://github.com/bcuff/elasticache-cluster-config-net it supports .net core however I do not feel like it is good enough to publish a package so I haven't.

@Kaelum
Copy link

Kaelum commented May 16, 2019

For anyone interested, I ported this project and enyim/EnyimMemcached to .NET Standard 2.0 libraries in the Kaelum/EnyimMemcachedStandard project. I can't support the code long term, but you are free to use it under the Apache 2.0 license.

UPDATE 08/29/2019:
Due to Windows library refences in the original library, this library only works on Windows. The Windows library references would need to be converted to .NET Standard libraries in order for this to work on Linux or Mac.

@Kaelum
Copy link

Kaelum commented Aug 29, 2019

It appears that someone else has forked a branch as well, and it is available at:

https://github.com/kt81/elasticache-cluster-config-net-core/

@jbright
Copy link

jbright commented Dec 23, 2019

@normj happy holidays! Checking in on this request. I'm using EnyimMemcachedCore which seems to work fine for a single node, but I'd love to be using an AWS provided library and move to a cluster. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved.
Projects
None yet
Development

No branches or pull requests