Skip to content
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

Update Getting Started guide #4

Closed
ferigis opened this issue Aug 17, 2017 · 2 comments · Fixed by #5
Closed

Update Getting Started guide #4

ferigis opened this issue Aug 17, 2017 · 2 comments · Fixed by #5

Comments

@ferigis
Copy link
Contributor

ferigis commented Aug 17, 2017

In "Fetching all entries" section we are using Blog.Cache.all/0,1 which it doesn't exist anymore.
Replace it by to_map function

@loongmxbt
Copy link

May I ask why replace all() to to_map()?

@cabol
Copy link
Owner

cabol commented Aug 18, 2017

@loongmxbt the reason is all function doesn't exists any more, instead the to_map function was created to retrieve all cached entries, because sometimes you might want not only the values but also the keys, and I though the best way to return the cached entries was using a map, you have both, keys and values, and is you want the Nebulex.Object as value, you can pass the option return: :object.

However, if you have any suggestion, possible enhancement, please let us know :)

Stay tuned!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants