Socket
Socket
Sign inDemoInstall

cache-point

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cache-point

cache-point


Version published
Weekly downloads
145K
increased by0.14%
Maintainers
1
Weekly downloads
 
Created
Source

view on npm npm module downloads Build Status Dependency Status js-standard-style

cache-point

Example

const Cache = require('cache-point')
const cache = new Cache({ cacheDir: '~/.cache' })

Cache ⏏

Kind: Exported class

new Cache([options])
ParamType
[options]object
[options.cacheDir]string

cache.cacheDir : string

Cache directory

Kind: instance property of Cache

cache.read(keys) ⇒ Promise

Cache hit resolves, miss rejects.

Kind: instance method of Cache

ParamTypeDescription
keys*One or more values to index the data, e.g. a request object or set of function args.

cache.write(keys, content) ⇒ Promise

Write some data to the cache with a key.

Kind: instance method of Cache

ParamTypeDescription
keys*One or more values to index the data, e.g. a request object or set of function args.
content*the data to store

cache.getChecksum(keys) ⇒ string

Converts a key value into a hex checksum.

Kind: instance method of Cache

ParamTypeDescription
keys*One or more values to index the data, e.g. a request object or set of function args.

cache.clean() ⇒ Promise

Cleans the cache.

Kind: instance method of Cache

cache.remove() ⇒ Promise

Cleans and removes the cache.

Kind: instance method of Cache


© 2016 Lloyd Brookes <75pound@gmail.com>. Documented by jsdoc-to-markdown.

FAQs

Package last updated on 29 Jul 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc