Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Latest commit

 

History

History
35 lines (28 loc) · 721 Bytes

README.md

File metadata and controls

35 lines (28 loc) · 721 Bytes

Brook Storage Nebulex

A Brook.Storage implementation using Nebulex

Installation

def deps do
  [
    {:brook_storage_nebulex, "~> 0.1.0"}
  ]
end

Usage

Set the storage to be the Nebulex storage driver.

config :my_app, :brook,
  instance: :default,
  driver: [
    module: Brook.Driver.Json,
    init_arg: []
  ],
  handlers: [MyApp.Event.Handler],
  storage: [
    module: Brook.Storage.Nebulex,
    init_arg: [
      cache: MyApp.Event.Cache
    ]
  ]

Ensure your cache is started in your supervision tree before starting brook. The storage driver should work with any type of Nebulex cache. Caches are safe to share across brook instances.