Forum: Ruby on Rails What is a "low level caching" in Rails in terms of SQL Caching?

1ac774797c9e79861840599b23653c3c?d=identicon&s=25 Wins Lin (zvooq)
on 2013-06-04 16:33
In the Rails Guides about caching there is an explanation:

However, it’s important to note that query caches are created at the
start of an action and destroyed at the end of that action and thus
persist only for the duration of the action. If you’d like to store
query results in a more persistent fashion, you can in Rails by using
low level caching.

So what is that "low level caching"? Is it explained in Guides?
F50d3b02eee623a2172b58c09fe31c2c?d=identicon&s=25 mike (Guest)
on 2013-06-04 17:31
(Received via mailing list)
On Tuesday, June 4, 2013 10:33:49 AM UTC-4, Ruby-Forum.com User wrote:
>
> --
> Posted via http://www.ruby-forum.com/.


Actually, I don't think it is.  It might be and I'm just not aware of
it.
 Rails has several layers of caching.  Page, Action, and fragment
caching
are high level caches.  There's a general cache, Rails.cache, that
exists
and you can write to it directly at a lower level.  Typically, this is
done
in a model and the mainstay of low level caching is the
Rails.cache.fetch
method.  You can also initiate your own caches.  There might be places
on
the web that document it.  It's pretty well documented in *The Rails 4
Way* but
that's a book you would need to purchase.
622547b2f551885f92449b4924573242?d=identicon&s=25 John Davalos (Guest)
on 2013-06-06 17:23
(Received via mailing list)
check this article out.
http://robotmay.com/post/23161612605/everyone-shou...

i hope you find it useful
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.