Steps to reproduce
If my service return a "Feather Error" instead of "throwing" it, the redis cache will try to save it in redis. The next time I access the same route, the server crash (need to restart the server !) with this error:
/node_modules/feathers-hooks-rediscache/lib/library.min.js:1
(function (exports, require, module, __filename, __dirname) { !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("library",[],t):"object"==typeof exports?exports.library=t():e.library=t()}(global,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=ty
TypeError: Cannot read property 'expiresOn' of undefined
at Command.a.get [as callback] (/home/node_modules/feathers-hooks-rediscache/lib/library.min.js:1:2398)
at normal_reply (/home/node_modules/redis/index.js:726:21)
at RedisClient.return_reply (/home/node_modules/redis/index.js:824:9)
at JavascriptRedisParser.returnReply (/home/node_modules/redis/index.js:192:18)
at JavascriptRedisParser.execute (/home/node_modules/redis-parser/lib/parser.js:574:12)
at Socket.<anonymous> (/home/node_modules/redis/index.js:274:27)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:250:11)
at Socket.Readable.push (_stream_readable.js:208:10)
at TCP.onread (net.js:601:20)
Expected behavior
Server should be able to continue to process other requests.
Actual behavior
I need to restart the server and clear the cache to be able to test again.
System configuration
Module versions
"@feathersjs/configuration": "^2.0.6",
"@feathersjs/errors": "^3.3.6",
"@feathersjs/express": "^1.3.1",
"@feathersjs/feathers": "^3.3.1",
"feathers-hooks-common": "^4.20.7",
"feathers-hooks-rediscache": "^1.1.5",