Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offer selectable strategies for local caching of channel state #7

Open
vforvalerio87 opened this issue Feb 8, 2019 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@vforvalerio87
Copy link
Contributor

Current behavior:
Right now channel state is re-fetched from the daemon at every call: the reason is that another application using the same private key and channel (example: dapp or CLI) may update the state of that channel for that user and the sdk wouldn't know about it

Desired behavior:
Allow users to specify pluggable caching strategies for channel state. Example: store in a variable for the current session, store to local file system, store to shared file system or database (this way multiple SDK instances could share the same channel)

@astroseger
Copy link

directly related #9 . It is already implemented in snet-cli (together with dynamical caching for metadata and compiled protobufs).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants