47ng/session-keystore

Rework the notification API

franky47 opened this issue · 0 comments

There are several issues with the current API:

  • No way to pass notification callbacks without specifying an expiration date (makes sense for onExpired, but not for key access)
  • Every call to set can/must overwrite existing callbacks

Maybe we can set those up in the constructor, since the callbacks provide the keyName as a first argument.