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

Add support Cache.never #528

Closed
gokhanabatay opened this issue Mar 23, 2022 · 1 comment · Fixed by #697
Closed

Add support Cache.never #528

gokhanabatay opened this issue Mar 23, 2022 · 1 comment · Fixed by #697

Comments

@gokhanabatay
Copy link

Hi,
For perfromance needs NHibernate now supports to exclude desired entities from second level cache features. nhibernate/nhibernate-core#2744

Could you add support Cache.Never() for FluentNHibernate mapping.

public class EntUserPolicyDefMap : ClassMap<EntUserPolicyDef>
{
        public EntUserPolicyDefMap()
        {
               Cache.Never();
        }
}

Does Cache.CustomUsage("never") is a option to set cache strategy.

@gokhanabatay
Copy link
Author

Its working with Cache.CustomUsage("never") in fluent nhibernate mapping file

@hazzik hazzik changed the title Add support Cache.never new nHibernate feature Add support Cache.never new NHibernate feature Oct 4, 2022
hazzik added a commit that referenced this issue May 24, 2024
@hazzik hazzik changed the title Add support Cache.never new NHibernate feature Add support Cache.never May 24, 2024
hazzik added a commit that referenced this issue May 24, 2024
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

Successfully merging a pull request may close this issue.

1 participant