Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

redux-cache

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-cache

Client side TTL caching strategy for redux applications

  • 0.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
352
decreased by-30.16%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status Coverage Status

redux-cache

This library is a WIP. Will be pushed to NPM soon.

This library provides an easy to use client side TTL caching strategy for redux applications.

Often, it is unnecessary to refetch data from an API if we know that it is unlikely to change within a certain period. By not fetching the data we are being friendly to mobile data users, limiting unnecessary API calls, and minimizing re-renders of applications due to state updates.

Installation

Note: Current redux-cache package is an un-maintained library. This will soon be pushed.

npm install -s redux-cache

Usage

Add the store enhancer (cacheEnhancer) to your redux store. Example:

// WIP

  1. A store enhancer - cacheEnhancer()
  2. A TTL generator - generateCacheTTL()
  3. A cache validator - checkCacheValid()
  4. An Invalidate action
  5. A default cache key

Keywords

FAQs

Package last updated on 20 Aug 2017

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