guys, is it worth to have chain of cache like 1 layer: in memory cache, 2 layer : memcached 3 layer: database, sounds crazy but all we want do is reduce memecache call and also db calls
Happy Friday all, may i ask a question about a error: nnectionNotEstablished: ActiveRecord::ConnectionNotEstablished, the reason i guess this because i put this in application.rb file ` ActiveRecord::Base.connection.table_exists?('table_name')`, i need to initialize some variable if the table exists, anyone know why it happens? is there the wrong i should check db connection.
anyone know what's the correct syntax for alias_method? i am monkey patching a method from a class and that class is under a module, here is the gist https://gist.github.com/warm200/f18f217de1f4a942417d194d4b2b3fb0
module ActiveSupport::Cache::Store # Store is actually a class but i don't know the correct way to put it
hey Guys, i have a urgent question, i am trying to see the most frequent cache_key get call by rails, i was thinking to override Rails.cache.read/fetch then add addtional call to some metrics services to measure each call without rewrite original Rail.cache.write/fetch code, is that feasible or crazy?
or any gem you know can help to measure the most frequent key get called, we're using memcached hosted in aws