@binyamin/data-cache
Advanced tools
Changelog
2.0.0 - 2023-03-29
get()
- If "key" has child keys (ie. it's a directory), return the children's contents as a JSON object.require()
(ie, commonjs) is no longer supported.Changelog
1.0.1 - 2020-09-09
string
..json
extension to the key.Changelog
1.0.0 - 2020-09-08
get()
method retrieves a value from the cache, using the provided key.set()
method initializes or modifies a value from the cache, using the provided key and value.set()
method accepts an optional 3rd parameter "ext", which, for JSON content, will parse the value as JSON before returning.