CacheManager<T>.justCache constructor
CacheManager<T>.justCache ({
- required String key,
- required SerializerFunc serializerFunc,
- int? ttlValue,
Implementation
CacheManager.justCache(
{required String key, required SerializerFunc serializerFunc, int? ttlValue}) {
_strategyBuilder = StrategyBuilder<T>(key, sotrageImplimentation)
.withAsync((){})
.withSerializer(serializerFunc)
.withStrategy(JustCacheStrategy());
if (ttlValue != null) {
_strategyBuilder.withTtl(ttlValue);
}
}