-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crafting Nebulex v2 #68
Merged
Conversation
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
cabol
force-pushed
the
v2.0.0
branch
4 times, most recently
from
March 30, 2020 12:19
ebb1191
to
ea54fe7
Compare
cabol
force-pushed
the
v2.0.0
branch
2 times, most recently
from
April 12, 2020 14:27
9007dcd
to
aa45061
Compare
cabol
force-pushed
the
v2.0.0
branch
10 times, most recently
from
May 6, 2020 14:22
1b19894
to
fa7d1fb
Compare
cabol
force-pushed
the
v2.0.0
branch
2 times, most recently
from
May 20, 2020 15:58
d7b8dcb
to
dfd09a2
Compare
cabol
changed the title
WIP - First draft for v2.0.0
WIP - Preparing first release candidate v2.0.0-rc.0
Jun 6, 2020
Improve local adapter to manage only two generations and use persistent_term Fix adapters for handling metadata Fix docs
cabol
force-pushed
the
v2.0.0
branch
2 times, most recently
from
July 4, 2020 16:53
a82fbc8
to
59d3f0a
Compare
cabol
changed the title
WIP - Preparing first release candidate v2.0.0-rc.0
Preparing Nebulex v2.0.0-rc.0
Jul 4, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SoW for Nebulex v2.0.0-rc.0
:return
option from the Cache API.:version
option from the Cache API.c:set/3
->c:put/3
.c:set_many/2
->c:put_all/2
.c:add/3
andc:add!/3
->c:put_new/3
,c:put_new!/3
.c: add_or_replace/3
.c:update_counter/3
->c:incr/3
.c:object_info/2
.c:ttl/1
,c:touch/1
.:persistent_term
internally.Nebulex.Caching.Decorators
byNebulex.Caching
.cache/3
decorator bycacheable/3
.evict/3
decorator bycache_evict/3
.update/3
decorator bycache_put/3
.:match
to return a specific value to cache(term -> boolean | {true, term})
– Iftrue
the code-block evaluation result is cached as it is (the default). If{true, value}
is returned, then the value is what is cached.v2.0.0
, pre/post hooks are not supported byNebulex
itself, since hooks are not a common use-case and also it is something that can be be easily implemented on top of the Cache at the application level.Nebulex.Hook
to implement hook decorators (before/3
,after_return/3
,around/3
) and keep backward compatibility somehow.:adapter
option in compile-time).:ets
and:shards
.:persistent_term
to manage the generations' lifecycle (useatoms
as values for better usage of the:persistent_term
).:adapter
option in compile-time).:adapter
option in compile-time).:adapter
option in compile-time).:fallback
option, since it can be easily covered by the caching annotations.