🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@nebula-db/plugin-cache

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nebula-db/plugin-cache - npm Package Compare versions

Comparing version
0.1.0
to
0.1.1
+40
README.md
# @nebula-db/plugin-cache
Query caching plugin for NebulaDB
Part of the [NebulaDB](https://github.com/Nom-nom-hub/NebulaDB) project - a high-performance, reactive, TypeScript-first, schema-optional, embeddable NoSQL database.
## Installation
```bash
npm install @nebula-db/plugin-cache
```
## Usage
```typescript
import { createDb } from '@nebula-db/core';
import { MemoryAdapter } from '@nebula-db/adapter-memory';
import { createCachePlugin } from '@nebula-db/plugin-cache';
// Create the plugin
const cachePlugin = createCachePlugin();
// Create a database with the plugin
const db = createDb({
adapter: new MemoryAdapter(),
plugins: [cachePlugin]
});
// Use the database with the plugin
const users = db.collection('users');
await users.insert({ name: 'Alice', age: 30 });
```
## Documentation
For full documentation, visit the [NebulaDB GitHub repository](https://github.com/Nom-nom-hub/NebulaDB).
## License
MIT
+3
-2
{
"name": "@nebula-db/plugin-cache",
"version": "0.1.0",
"version": "0.1.1",
"description": "Query caching plugin for NebulaDB",

@@ -9,3 +9,4 @@ "main": "dist/index.js",

"files": [
"dist"
"dist",
"README.md"
],

@@ -12,0 +13,0 @@ "scripts": {