Skip to content

Conversation

@NoahLerner
Copy link

@NoahLerner NoahLerner commented Jun 29, 2022

By adding the initializeIfMissing parameter to the CacheAttribute, library users can ensure that they won't encounter 100% cache misses if the configuration is missing or deleted.

Usage

[Cache("missingCacheName", true)]    // creates an `InMemoryCache` with a 1 day sliding expiration
public void MyMethod(){
}

@NoahLerner NoahLerner marked this pull request as ready for review June 29, 2022 19:25
@NoahLerner NoahLerner changed the title Make named cache optionally mandatory Make named cache optionally mandatory & remove SerializableAttribute for NET 6 support Jul 4, 2022
@NoahLerner NoahLerner changed the title Make named cache optionally mandatory & remove SerializableAttribute for NET 6 support Make named cache optionally mandatory Jul 4, 2022
@NoahLerner NoahLerner changed the title Make named cache optionally mandatory Optionally create default InMemory cache if ICache not found Jul 11, 2022
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 this pull request may close these issues.

1 participant