Skip to content

Custom adapter raising "undefined method `memoize='" #555

Answered by jamesgecko
jamesgecko asked this question in Q&A
Discussion options

You must be logged in to vote

Nevermind, I overlooked the fact that you need to actually create an instance of Flipper in the configure block.

Flipper.configure do |config|
  config.default do
    adapter = CacheBuster.new(Flipper::Adapters::Redis.new($redis))
    Flipper.new(adapter)
  end
end

Also need to define the methods passed through to the Redis class. 🤦‍♂️

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jnunemaker
Comment options

Answer selected by bkeepers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants