You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ReplyError: ERR wrong number of arguments for 'del' command
at parseError (/home/fiouch/diplomski-fvoska/node_modules/redis-parser/lib/parser.js:181:12)
at parseType (/home/fiouch/diplomski-fvoska/node_modules/redis-parser/lib/parser.js:269:14)
I temporarily fixed it on my end by replacing globalOptions.redisClient.del(); with globalOptions.redisClient.flushall(); But this flushes whole redis, not only apicache items. DEL should get all keys used in apicache (maybe get from index.all?) as parameters.
The text was updated successfully, but these errors were encountered:
@fvoska - please update and let me know if this fixes your issue... I don't use redis-parser, so I can't be certain it solves your specific case, but I've updated the internal redis clear all function (from another contributor) to delete key by key to preserve non-apicache entries (and updated tests to better verify success with redis).
globalOptions.redisClient.del(); fails with:
Redis DEL command requires parameters, as per documentation.
Not sure if this has changed over time as I have only recently started using redis.
I temporarily fixed it on my end by replacing globalOptions.redisClient.del(); with globalOptions.redisClient.flushall(); But this flushes whole redis, not only apicache items. DEL should get all keys used in apicache (maybe get from index.all?) as parameters.
The text was updated successfully, but these errors were encountered: