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]publicclassBasicSample{// ...publicintAdd(inta,intb,[NoKey]intc){returna+b;}}
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: