New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@gibme/cache

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gibme/cache

A caching helper wrapped around various cache types

Source
npmnpm
Version
20.0.3
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

A Simple Caching Wrapper

Features

  • Provides a common interface between backend systems
  • Backend systems supported:
    • node-cache
    • redis

Documentation

https://gibme-npm.github.io/cache

Sample Code

Memory

import Memory from '@gibme/cache/memory';

(async () => {
    const client = new Memory();
    
    await client.set('somekey', { some: 'value' });
    
    const value = await client.get('somekey');
    
    if (value) {
        console.log(value);
    }
    
    await client.disconnect();
})();

Redis

import Redis from '@gibme/cache/redis';

(async () => {
    const client = new Redis({
        host: 'localhost',
        username: 'someuser',
        password: 'somepassword'
    });
    
    await client.set('somekey', { some: 'value' });
    
    const value = await client.get('somekey');
    
    if (value) {
        console.log(value);
    }
    
    await client.disconnect();
})();

FAQs

Package last updated on 13 Dec 2025

Related posts