Skip to content

Optionally create default InMemory cache if ICache not found #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

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