Light Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

elixir-geolix/adapter_lookup_cache

Repository files navigation

Geolix Adapter: Lookup Cache

Lookup cache adapter for Geolix.

Package Setup

To use the Lookup Cache Adapter with your projects, edit your mix.exs file and add the required dependencies:

defp deps do
[
# ...
{:geolix_adapter_lookup_cache, "~> 0.2.0"},
{:your_geolix_adapter_of_choice, "~> 0.1.0"},
# ...
]
end

An appropriate version of :geolix should automatically be selected by both the cache and lookup adapter's dependency trees.

Adapter Configuration

To start using the adapter with a lookup adapter you need to add the required configuration entry to your :geolix configuration:

config :geolix,
databases: [
%{
id: :my_lookup_id,
adapter: Geolix.Adapter.LookupCache,
cache: %{
id: :my_cache_id,
adapter: MyCacheAdapter
},
lookup: %{
adapter: MyLookupAdapter
}
}
]

The :id of the adapter configuration will be reused for the lookup adapter and automatically passed when required.

License

Apache License, Version 2.0

About

Geolix Adapter: Lookup Cache

Resources

Readme

License

Apache-2.0 license

Stars

Watchers

Forks

Packages

Contributors

Languages