It seems that since https://github.com/sindresorhus/quick-lru/releases/tag/v6.0.0 quick-lru is not compatible anymore with keyv:
Type 'QuickLRU<unknown, unknown>' is not assignable to type 'string | false | StorageAdapter | undefined'.
Type 'QuickLRU<unknown, unknown>' is not assignable to type 'StorageAdapter'.
Types of property 'set' are incompatible.
Type '(key: unknown, value: unknown, options?: { maxAge?: number | undefined; } | undefined) => QuickLRU<unknown, unknown>' is not assignable to type '(key: string, value: any, ttl?: number | undefined) => any'.
Types of parameters 'options' and 'ttl' are incompatible.
Type 'number | undefined' is not assignable to type '{ maxAge?: number | undefined; } | undefined'.
Type 'number' is not assignable to type '{ maxAge?: number | undefined; } | undefined'.
Either
1- Change signature of quicklru .set
so that the metod is compliant with keyv StorageAdapter
interface
2- Remove suggestion of quick-lru usage inside the readme
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too