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

NCacheLINQ Sample Fails with Partitioned Cache #41

Open
DAConsulting opened this issue May 3, 2019 · 6 comments
Open

NCacheLINQ Sample Fails with Partitioned Cache #41

DAConsulting opened this issue May 3, 2019 · 6 comments

Comments

@DAConsulting
Copy link

I have noticed that when referencing NCache.Linq, InitializeCache fails or hangs when attempting to use a "partitioned" cache. This is reproducible by changing the cache used in the NCacheLINQ sample project from "myCache" to "myPartitionedCache". Simply removing the reference solves the problem (but of course, eliminates the ability to use Linq queries).

I have not found any documentation indicating that NCache Linq can only be used with a "local" cache?

If anyone has a solution for this (using Linq with partitioned cache) or information as to why we cannot use Linq with a partioned cache, kindly let us know.

Thanks.

@DAConsulting DAConsulting changed the title NCacheLINQ Sample Fails with Partitioned Cahce NCacheLINQ Sample Fails with Partitioned Cache May 3, 2019
@DAConsulting
Copy link
Author

Note: The NCache.Linq Nuget packages add configurations to the local project, which was causing initialization on another cache to fail. Because the name "myCache" was setup in NCHOME and locally as a result of the NuGet install, that worked. I did not notice the local configurations until later, after fiddling around and scratching my head for a while. So.. this issue is probably not an issue.

@Brad-NCache
Copy link

Hello DAConsulting,

Thank you for updating us on the fix. Yes, the SDK NuGet package automatically copies the client.ncconf and config.ncconf files into a project on installation. Please let me know if you have any other issues using NCache.

@DAConsulting
Copy link
Author

DAConsulting commented May 6, 2019 via email

@Brad-NCache
Copy link

Hello DAConsulting,

The local configurations are shipped with the NuGet package for a number of reasons. Some of the important ones are:

  • No Local NCache Installation:
    In case there is no local NCache installation, the application developer can still make use of the NCache in-proc cache that runs within the application address space. The local in-proc cache enjoys many of NCache features including ASP.NET session and view caching, Entity Framework Caching Provider etc.

  • NCache client.ncconf Settings:
    NCache works by looking for a client.ncconf file first within the application project solution and finding it there, initializes the cache with the settings therein. This is useful in cases where the cache communication settings are to be made specific to the application.

If you have any other questions regarding NCache, please do let us know.

@DAConsulting
Copy link
Author

DAConsulting commented May 7, 2019 via email

@Brad-NCache
Copy link

Hello DAConsulting,

Thanks for your helpful feedback and your concerns. I will pass this on to engineering and raise your points with them. If you have any further questions about working with NCache or ideas on how NCache can better serve your application requirement, please do let us know.

Regards,

Brad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants