New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
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

Query caching plugin for NebulaDB

latest
Source
npmnpm
Version
0.2.5
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

@nebula-db/plugin-cache

Query caching plugin for NebulaDB

Part of the NebulaDB project - a high-performance, reactive, TypeScript-first, schema-optional, embeddable NoSQL database.

Installation

npm install @nebula-db/plugin-cache

Usage

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.

License

MIT

Keywords

database

FAQs

Package last updated on 02 Jul 2025

Did you know?

Socket

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.

Install

Related posts