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

clay-resource-cache

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clay-resource-cache

Cache handler for clay-resources

latest
Source
npmnpm
Version
2.0.3
Version published
Weekly downloads
2
-60%
Maintainers
1
Weekly downloads
 
Created
Source

clay-resource-cache

Build Status npm Version JS Standard

Cache handler for clay-resources

Installation

$ npm install clay-resource-cache --save

Usage

'use strict'

const clayResourceCache = require('clay-resource-cache')
const clayEntity = require('clay-entity')

{
  const cache = clayResourceCache({
    max: 1000,
    maxAge: 1000 * 60 * 60
  })

  const entity01 = clayEntity({
    name: 'The entity 01'
  })

  cache.store(entity01)

  const cached = cache.get(entity01.id)
  console.log(cached) // Get cached entity
}

API Guide

License

This software is released under the Apache-2.0 License.

Keywords

ClayDB

FAQs

Package last updated on 04 Oct 2019

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