-
Notifications
You must be signed in to change notification settings - Fork 123
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
BYO-Cache #67
Comments
As backend you could use https://github.com/minad/moneta |
Yep, same []/[]= interface, would be nice if we could just plug anything in :) |
Added support to moneta for now: https://github.com/minad/moneta/blob/master/lib/rack/cache/moneta.rb You get a lot of key/value stores for free: redis, memcached, tokyo, riak, cassandra, couch, mongo, ... This entitystore/metastore thing and the uri lookup thing are very much overengineered. It would be much better to replace this with something simpler. |
Thanks, redis->juno->rack it is then... still feels like a wtf solution to a dead-simple problem... |
@rtomayko just set up a new app an ran into exactly the same issue :( |
I'd like to "bring my own cache".
can we just focus on support a simple interface like []/[]=/clear moneta style or read/write/fetch/clear and be done with this ?
I don't want to learn how rack-cache works internally, does it really have to be more complicated then:
use Rack::Cache, :cache => Rails.cache
use Rack::Cache, :cache => MyOwnCachenew
maybe at most:
use Rack::Cache, :enititystore => Rails.cache, :metastore => ActiveSupport::Cache::Memorystore.new
would also solve support for mongodb/redis/multi-server-memcache etc and surely a few issues.
The text was updated successfully, but these errors were encountered: