Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
a basic local cache implementation
A basic file cache implementation. It just providers low-level APIs (get, set, delete) to allow you read & atomic write from file cache. You can also create your implementation by inheriting or wrapping it.
npm install diskstore --save
new DiskStore(options)
async get(relativePath)
read data from relativePath if the file exists.
async set(relativePath, data)
write data to relativePath
async delete(relativePath)
delete the file
const diskStore = new DiskStore({
cacheDir: '/path/cache',
});
await diskStore.set('a/b/c', 'c');
let data = await diskStore.get('a/b/c');
assert.deepEqual(data, Buffer.from('c'));
await diskStore.delete('a/b/c');
data = await diskStore.get('a/b/c');
assert(data === null);
leoner | gxcsoccer | fengmk2 |
---|
This project follows the git-contributor spec, auto updated at Thu Jun 02 2022 15:25:27 GMT+0800
.
FAQs
a local cache implement
We found that diskstore demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.