Having single instance of cache across components with respect to react #4

Closed
opened 2019-06-17 01:23:29 -07:00 by vjr12 · 1 comment
vjr12 commented 2019-06-17 01:23:29 -07:00 (Migrated from github.com)

If I am having to integrate tinycache with a react application,then how will I maintain one common cache across all the components ?

If I am having to integrate tinycache with a react application,then how will I maintain one common cache across all the components ?
andyburke commented 2019-06-18 12:25:31 -07:00 (Migrated from github.com)

You can either manage it yourself or you can use the default shared cache:

const cache = require( 'tinycache' ).shared;
You can either manage it yourself or you can use the default shared cache: ```javascript const cache = require( 'tinycache' ).shared; ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
andyburke/tinycache#4
No description provided.