Skip to content

Add support Cache.never #528

@gokhanabatay

Description

@gokhanabatay

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions