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
To Reproduce
Configure localforage as described above and then check the size of the mesh cache. It's always 4980736 which is default size for localforage.
Issue workflow progress
Progress of the issue based on the Contributor Workflow
Describe the bug
By defining the localforage cache like this, the size is ignored:
To Reproduce
Configure localforage as described above and then check the size of the mesh cache. It's always 4980736 which is default size for localforage.
The bug is here: https://github.com/Urigo/graphql-mesh/blob/master/packages/cache/localforage/src/index.ts#L13
config.size
is simply not used at all.Then creation of InMemoryLRU https://github.com/Urigo/graphql-mesh/blob/master/packages/cache/localforage/src/InMemoryLRUDriver.ts#L15 has options.size = 4980736 and not 1000
Expected behavior
size should be 1000.
It also be very very useful if Mesh will log info about current configuration of the cache. Now there is no mention about cache at all.
Environment:
@graphql-mesh/cli
: 0.78.28The text was updated successfully, but these errors were encountered: