We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Suppose you have a Greeting model with [id, text] and you want to list all available greetings.
5> boss_db:find(greeting, []). [{greeting,"greeting-8",<<"Hello">>}, {greeting,"greeting-9",<<"Foo">>}]
5> boss_db:find(greeting, []).
[{greeting,"greeting-8",<<"Hello">>}, {greeting,"greeting-9",<<"Foo">>}]
You have caching enabled and update a Greeting field like so:
6> Greeting = boss_db:find("greeting-9"). (Greeting:set(text, "Bar")):save(). {ok,{greeting,"greeting-9","Bar"}} 7> boss_db:find(greeting, []). [{greeting,"greeting-8",<<"Hello">>}, {greeting,"greeting-9",<<"Foo">>}]
6> Greeting = boss_db:find("greeting-9").
(Greeting:set(text, "Bar")):save().
{ok,{greeting,"greeting-9","Bar"}}
7> boss_db:find(greeting, []).
The cache for the first query should be invalidated but it won't. #260 fixes this.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Suppose you have a Greeting model with [id, text] and you want to list all available greetings.
5> boss_db:find(greeting, []).
[{greeting,"greeting-8",<<"Hello">>}, {greeting,"greeting-9",<<"Foo">>}]
You have caching enabled and update a Greeting field like so:
6> Greeting = boss_db:find("greeting-9").
(Greeting:set(text, "Bar")):save().
{ok,{greeting,"greeting-9","Bar"}}
7> boss_db:find(greeting, []).
[{greeting,"greeting-8",<<"Hello">>}, {greeting,"greeting-9",<<"Foo">>}]
The cache for the first query should be invalidated but it won't. #260 fixes this.
The text was updated successfully, but these errors were encountered: