-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cache API based on Ok/Error tuples (Nebulex v3)
- Ok/Error tuple Cache API - Remove deprecated module `Nebulex.Hook` - Use NimbleOptions for defining and validating cache options - Replace `:ttl` field by `:exp` in local adapter - Replace `Mock` with `Mimic` - Add `:dynamic_cache` to set the cache instance dynamically in runtime - Improve docs
- Loading branch information
Showing
91 changed files
with
5,007 additions
and
3,551 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,30 @@ | ||
locals_without_parens = [ | ||
# Nebulex.Helpers | ||
unwrap_or_raise: 1, | ||
wrap_ok: 1, | ||
wrap_error: 1, | ||
wrap_error: 2, | ||
|
||
# Nebulex.Cache | ||
dynamic_cache: 2, | ||
|
||
# Nebulex.Caching | ||
cache_ref: 1, | ||
cache_ref: 2, | ||
|
||
# Tests | ||
deftests: 1, | ||
deftests: 2, | ||
setup_with_cache: 1, | ||
setup_with_cache: 2, | ||
setup_with_dynamic_cache: 2, | ||
setup_with_dynamic_cache: 3 | ||
] | ||
|
||
[ | ||
import_deps: [:stream_data], | ||
inputs: ["{mix,.formatter}.exs", "{config,lib,test,benchmarks}/**/*.{ex,exs}"], | ||
line_length: 100 | ||
line_length: 100, | ||
locals_without_parens: locals_without_parens, | ||
export: [locals_without_parens: locals_without_parens] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,3 +37,4 @@ erl_crash.dump | |
/priv | ||
.sobelow* | ||
/config | ||
Elixir* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
}, | ||
|
||
"skip_files": [ | ||
"lib/nebulex/cache/options.ex", | ||
"test/support/*", | ||
"test/dialyzer/*" | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.