fairDataSociety / fdp-storage

Serverless Web3 filesystem for organizing users' personal data implemented in Typescript.

Home Page:https://www.npmjs.com/package/@fairdatasociety/fdp-storage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Caching strategy

tfius opened this issue · comments

Current caching lifecycle is not good and causes problems.

  • we don't know when connection was either interrupted or changed. (no event if you restart fdp-play or get offline)
  • we can't know when storage context was changed and data is no longer available. (Blossom can not store cache date)

Change implementation so caching is optional.
Introduce CacheProxy with following functionality:

  • explicit invalidation,
  • purge option and
  • refresh option