Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 8, 2024 via pnpm

cache-base 4.0.2

Basic object cache with `get`, `set`, `del`, and `has` methods for node.js/javascript projects.
Package summary
Share
0
issues
1
license
27
MIT
Package created
12 Oct 2014
Version published
6 Nov 2021
Maintainers
2
Total deps
27
Direct deps
8
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
27 Packages, Including:
@sellside/emitter@1.2.1
arr-union@3.1.0
assign-symbols@1.0.0
cache-base@4.0.2
collection-visit@1.0.0
extend-shallow@2.0.1
extend-shallow@3.0.2
get-value@2.0.6
get-value@3.0.1
has-own-deep@1.1.0
has-value@0.3.1
has-values@0.1.4
is-extendable@0.1.1
is-extendable@1.0.1
is-plain-object@2.0.4
is-primitive@3.0.1
isarray@1.0.0
isobject@2.1.0
isobject@3.0.1
kind-of@6.0.3
map-visit@1.0.0
object-visit@1.0.1
set-value@2.0.1
set-value@4.1.0
split-string@3.1.0
union-value@1.0.1
unset-value@1.0.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

8
All Dependencies CSV
β“˜ This is a list of cache-base 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
@sellside/emitter1.2.14.41 kBMIT
prod
collection-visit1.0.02.82 kBMIT
prod
get-value3.0.15.47 kBMIT
prod
has-own-deep1.1.02.69 kBMIT
prod
kind-of6.0.37.47 kBMIT
prod
set-value4.1.06.63 kBMIT
prod
union-value1.0.12.67 kBMIT
prod
unset-value1.0.03.09 kBMIT
prod

Visualizations

Frequently Asked Questions

What does cache-base do?

Cache Base is an efficient and customizable object caching utility designed for Node.js and JavaScript projects. It's a nifty tool that provides fundamental methods such as get, set, del, and has to help you manipulate project data effectively. Navigating nested properties is simple using dot notation, making it a beneficial resource in managing complex object structures.

How do you use cache-base?

To use Cache Base, download and install the package through NPM with the command $ npm install --save cache-base. After which, you may then require Cache Base in your project file like const CacheBase = require('cache-base');. Initialize a new Cache Base instance and use the provided methods to extract, manipulate, and check your data. Here is a simple usage example:

// Require the Cache Base library
const CacheBase = require('cache-base');
// Initialize a new Cache Base instance
const app = new CacheBase();

// Set data in the cache
app.set('a.b', 'c');

// Get data from the cache
console.log(app.get('a'));   // Output: { b: 'c' }
console.log(app.get('a.b')); // Output: 'c'

You can also interact with cache data using events emitted from Cache Base:

app.on('set', function(key, val) {
  // Do something when `set` is emitted
});

app.set('admin', true); // Triggers the 'set' event listener

Where are the cache-base docs?

You'll find all the details and additional configuration settings in the Cache Base GitHub repository. The README.md file on the repository contains an in-depth guide complete with usage examples and the complete API reference. This documentation helps you understand the optimal way to utilize Cache Base's functionalities to effectively manage your project's data.