Skip to content

Conversation

@silentsilas
Copy link

@silentsilas silentsilas commented Jul 4, 2022

To use Nebulex instead of ETS, you'd add this to your session options:

    strategy: PhoenixLiveSession.Strategy.Nebulex,
    nebulex_cache: YourApp.Cache,

Conversely, swap PhoenixLiveSession.Strategy.Nebulex with PhoenixLiveSession.Strategy.ETS to use ETS. Or it will default to ETS if no strategy is set.

Currently, deleting expired sid's isn't working on this branch unless using the ETS strategy, since Nebulex doesn't have a select_delete/2 unless using Local caching. So there's no good performant way to regularly clean up expired sid's for all of the various Nebulex caching adapters.

Tests for Nebulex also aren't working, as I'm struggling to figure out how to start a Nebulex cache in the test environment.

@silentsilas silentsilas changed the title Feature/nebulex-backend Feature/nebulex-backend (WIP) Jul 5, 2022
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.

1 participant