@laconia/core
Advanced tools
Comparing version 0.7.0 to 0.8.0
{ | ||
"name": "@laconia/core", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"description": "Micro dependency injection framework", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -183,12 +183,10 @@ # @laconia/core | ||
laconia(handler).register( | ||
async () => ( | ||
{ | ||
/* heavy operations */ | ||
}, | ||
{ | ||
cache: { | ||
maxAge: 1000 | ||
} | ||
async () => ({ | ||
/* heavy operations */ | ||
}), | ||
{ | ||
cache: { | ||
maxAge: 1000 | ||
} | ||
) | ||
} | ||
); | ||
@@ -195,0 +193,0 @@ ``` |
11636
214