adonis-cache
Advanced tools
@@ -31,3 +31,5 @@ 'use strict' | ||
| | Supported drivers: "object", "database", "redis" | ||
| | | ||
| | Hint: Use "null" driver for disabling caching | ||
| | Warning: Use the "object" driver only for development, it does not have a garbage collector. | ||
| | | ||
@@ -34,0 +36,0 @@ */ |
+4
-4
| { | ||
| "name": "adonis-cache", | ||
| "version": "0.3.2", | ||
| "version": "0.3.3", | ||
| "description": "Cache provider for AdonisJs framework", | ||
@@ -27,9 +27,9 @@ "scripts": { | ||
| "ioredis": "^3.2.2", | ||
| "knex": "^0.14.2", | ||
| "knex": "^0.16.3", | ||
| "mocha": "^4.0.1", | ||
| "sqlite3": "^3.1.8", | ||
| "sqlite3": "^4.0.6", | ||
| "standard": "^10.0.3" | ||
| }, | ||
| "dependencies": { | ||
| "lodash": "^4.17.4" | ||
| "lodash": "^4.17.11" | ||
| }, | ||
@@ -36,0 +36,0 @@ "standard": { |
+1
-1
@@ -66,3 +66,3 @@ # AdonisCache | ||
| The cache configuration file also contains various other options, which are documented within the file, so make sure to read over these options. By default, AdonisCache is configured to use the `object` cache driver, which stores cached objects in plain JavaScript object. For larger applications, it is recommended that you use a more robust driver such as Redis. You may even configure multiple cache configurations for the same driver. | ||
| The cache configuration file also contains various other options, which are documented within the file, so make sure to read over these options. By default, AdonisCache is configured to use the `object` cache driver, which stores cached objects in plain JavaScript object (use only for development). For larger applications, it is recommended that you use a more robust driver such as Redis. You may even configure multiple cache configurations for the same driver. | ||
@@ -69,0 +69,0 @@ <a name="driver-prerequisites"></a> |
@@ -81,3 +81,3 @@ 'use strict' | ||
| * @param {mixed} value | ||
| * @param {int} minutes | ||
| * @param {int|float} minutes | ||
| * @return {Promise<void>} | ||
@@ -84,0 +84,0 @@ */ |
@@ -63,3 +63,3 @@ 'use strict' | ||
| * @param {mixed} value | ||
| * @param {int} minutes | ||
| * @param {int|float} minutes | ||
| * @return {Promise<void>} | ||
@@ -66,0 +66,0 @@ */ |
@@ -59,3 +59,3 @@ 'use strict' | ||
| * @param {mixed} value | ||
| * @param {int} minutes | ||
| * @param {int|float} minutes | ||
| * @return {Promise<void>} | ||
@@ -62,0 +62,0 @@ */ |
@@ -373,3 +373,3 @@ 'use strict' | ||
| return Math.floor((duration * 60) > 0 ? duration : null) | ||
| return (duration * 60) > 0 ? duration : null | ||
| } | ||
@@ -376,0 +376,0 @@ } |
64487
0.21%Updated