A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pellejacobs/redux-persist-node-storage below:

pellejacobs/redux-persist-node-storage: Redux persist adaptor for Node localStorage

Redux persist node storage

Storage adaptor to use node-localstorage with redux-persist, by implementing the needed methods: setItem, getItem, removeItem and getAllKeys

Simply run:

npm install --save redux-persist-node-storage
import { AsyncNodeStorage } from 'redux-persist-node-storage'
import { persistStore, autoRehydrate } from 'redux-persist'
const store = createStore(reducer, undefined, autoRehydrate())
persistStore(store, { storage: new AsyncNodeStorage('/tmp/storageDir', 10) }) // 10MB limit for storage

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4