jaredwray / flat-cache

A stupidly simple key/value storage using files to persist the data
MIT License
165 stars 30 forks source link

Cache Reset #24

Closed gngchrs closed 5 years ago

gngchrs commented 5 years ago

Is there something I am missing

const path = require('path')
const flatCache = require('flat-cache')
let appCache = flatCache.load('test', path.resolve('./cache'))

appCache.setKey('a', 'something')
appCache.save()

appCache.setKey('b', 'something else')
appCache.save()

only the b key exists in cache and I want both to exist

gngchrs commented 5 years ago

nvm. appCache.save(true) works