Skip to content

Latest commit

 

History

History
5 lines (4 loc) · 459 Bytes

File metadata and controls

5 lines (4 loc) · 459 Bytes

Gramene client cache

Browser-only cache intended to reduce the amount of queries that gramoogle makes to gramene-search-client. It wraps lru-cache and json-stable-stringify.

Uses

Keys are deterministically serialized to JSON; the expected use case is that you pass in some object representing some query state and you get a cached response or undefined.