Packages

A feature toggle library using redis. It allows to roll out to users based on a percentage of users or alternatively to a set of users or user ids

Current section

Files

Jump to
molasses lib storage_adapter.ex
Raw

lib/storage_adapter.ex

defmodule Molasses.StorageAdapter do
@type value :: any
@type key :: any
@callback get(key) :: {:ok, term} | {:error, term}
@callback set(key, value) :: {:ok, term} | {:error, term}
@callback remove(key) :: {:ok, true} | {:error, false}
end