Skip to content

Conversation

@NoahLerner
Copy link

@NoahLernerNoahLerner 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 expirationpublicvoidMyMethod(){}

@NoahLernerNoahLerner marked this pull request as ready for review June 29, 2022 19:25
@NoahLernerNoahLerner changed the title Make named cache optionally mandatoryMake named cache optionally mandatory & remove SerializableAttribute for NET 6 supportJul 4, 2022
@NoahLernerNoahLerner changed the title Make named cache optionally mandatory & remove SerializableAttribute for NET 6 supportMake named cache optionally mandatoryJul 4, 2022
@NoahLernerNoahLerner changed the title Make named cache optionally mandatoryOptionally create default InMemory cache if ICache not foundJul 11, 2022
Sign up for freeto 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

@NoahLerner