Skip to content

Support excluding parameters from key creation #11

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;
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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