From 489da016fdc0bfb0535f35b89077c64e699bc182 Mon Sep 17 00:00:00 2001 From: Randall Schmidt Date: Thu, 10 Jun 2021 13:51:25 -0400 Subject: [PATCH] update readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9ad189a..b70b864 100644 --- a/README.md +++ b/README.md @@ -155,7 +155,7 @@ const fetch = createNodeFetchCache(new FileSystemCache(options)); You can implement a caching layer yourself. The cache simply needs to be an object that has `get(key)` and `set(key, value)` functions. -The set function must accept a key and a value (which will be a JSON-serializable JS object) and store them. +The set function must accept a key (which will be a string) and a value (which will be a JSON-serializable JS object) and store them. The get function should accept a key and return whatever value was set for that key (or `undefined`/`null` if there is no value for that key).