New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

qache

Package Overview
Dependencies
Maintainers
5
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qache

Qache is a utility class for handling server side caching of API queries made with any database.

latest
Source
npmnpm
Version
1.0.5
Version published
Weekly downloads
6
200%
Maintainers
5
Weekly downloads
 
Created
Source

Qache

What is Qache?

Qache is a utility class for handling server side caching of MongoDB queries made with GraphQL.

Installation

Using npm:

$ npm i qache

In Node.js:

// Load the Qache class
var Qache = require('qache');

// Instantiate a cache
var cache = new Qache();

Qache Properties

  • content
  • size
  • maxSize
  • TTL

Qache Methods

  • get(key)
  • set(key, value)
  • listCreate(listKey, ...item)
  • listRange(listKey, start, end)
  • listPush(item, ...listKeys)
  • listRemoveItem(filterObject, ...listKey)
  • listUpdate(filterObject, newItem, ...listKey)
  • listFetch(listKey,filterObject)
  • invalidate(...keys)

Support

Tested in Node.js 16.13.0

Automated unit tests are available.

See the complete package source for more details, as well as a fullstack demo application.

Keywords

cache

FAQs

Package last updated on 10 Feb 2022

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