Skip to content

Conversation

matheuskuster
Copy link

Summary

This PR updates the Storage interface to be more flexible and allows clients to provide their own storage implementation, removing the dependency on @react-native-async-storage/async-storage.

Changes

  • Updated Storage interface with a more standard API (get/set/delete methods)
  • Added support for optional TTL parameter in storage implementation
  • Modified the LocalStorage implementation to adapt to the new interface
  • Updated cache layer to handle null return values properly

This change makes the AsyncStorage dependency optional, allowing developers to use their preferred storage solution while maintaining backward compatibility.

Closes #50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow custom storage implementation

1 participant