Skip to content

Support excluding parameters from key creation #11

@pergerch

Description

@pergerch

Implement a [NoKey] attribute (or similar), that excludes the respective parameter from key creating. This is suitable for parameters that do not alter the outcome of the cached method and will improve the cache efficiency.

Code sample:

[Cache]
public class BasicSample
{
    // ...

    public int Add(int a, int b, [NoKey] int c)
    {
        return a + b;
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions