jnunemaker / bin Goto Github PK
View Code? Open in Web Editor NEWDEAD AND UNMAINTAINED. ActiveSupport MongoDB Cache store.
License: MIT License
DEAD AND UNMAINTAINED. ActiveSupport MongoDB Cache store.
License: MIT License
I see that the expires flag just works by respecting that on reads - but since Mongo doesnt implement any native expiring functionality it means that those key/values will just accumulate forever.
Should this be mentioned in the docs? That is, users might want to implement their own expiry sweeping mechanism? Probably just add an index on +expires+ and then sweep it via cron.
Could not find cache store adapter for bin
Running it like this:
config.cache_store = :bin, Mongo::Connection.new.db('page')['cache']
Looks like something changed in ActiveSupport::Cache
below backtrace:
from /home/mencio/.rvm/gems/[email protected]/gems/activesupport-3.2.1/lib/active_support/cache.rb:62:in `lookup_store'
from /home/mencio/.rvm/gems/[email protected]/gems/railties-3.2.1/lib/rails/application/bootstrap.rb:54:in `block (2 levels) in <module:Bootstrap>'
from /home/mencio/.rvm/gems/[email protected]/gems/activesupport-3.2.1/lib/active_support/core_ext/kernel/reporting.rb:11:in `block in silence_warnings'
from /home/mencio/.rvm/gems/[email protected]/gems/activesupport-3.2.1/lib/active_support/core_ext/kernel/reporting.rb:22:in `with_warnings'
from /home/mencio/.rvm/gems/[email protected]/gems/activesupport-3.2.1/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
from /home/mencio/.rvm/gems/[email protected]/gems/railties-3.2.1/lib/rails/application/bootstrap.rb:54:in `block in <module:Bootstrap>'
from /home/mencio/.rvm/gems/[email protected]/gems/railties-3.2.1/lib/rails/initializable.rb:30:in `instance_exec'
from /home/mencio/.rvm/gems/[email protected]/gems/railties-3.2.1/lib/rails/initializable.rb:30:in `run'
from /home/mencio/.rvm/gems/[email protected]/gems/railties-3.2.1/lib/rails/initializable.rb:55:in `block in run_initializers'
from /home/mencio/.rvm/gems/[email protected]/gems/railties-3.2.1/lib/rails/initializable.rb:54:in `each'
from /home/mencio/.rvm/gems/[email protected]/gems/railties-3.2.1/lib/rails/initializable.rb:54:in `run_initializers'
from /home/mencio/.rvm/gems/[email protected]/gems/railties-3.2.1/lib/rails/application.rb:136:in `initialize!'
from /home/mencio/.rvm/gems/[email protected]/gems/railties-3.2.1/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /home/mencio/Rails/Senpuuv5/config/environment.rb:23:in `<top (required)>'
from /home/mencio/.rvm/gems/[email protected]/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
from /home/mencio/.rvm/gems/[email protected]/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `block in require'
from /home/mencio/.rvm/gems/[email protected]/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:236:in `load_dependency'
from /home/mencio/.rvm/gems/[email protected]/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
from /home/mencio/Rails/Senpuuv5/config.ru:4:in `block in <main>'
from /home/mencio/.rvm/gems/[email protected]/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
from /home/mencio/.rvm/gems/[email protected]/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
from /home/mencio/Rails/Senpuuv5/config.ru:1:in `new'
from /home/mencio/Rails/Senpuuv5/config.ru:1:in `<main>'
from /home/mencio/.rvm/gems/[email protected]/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval'
from /home/mencio/.rvm/gems/[email protected]/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file'
from /home/mencio/.rvm/gems/[email protected]/gems/rack-1.4.1/lib/rack/server.rb:200:in `app'
from /home/mencio/.rvm/gems/[email protected]/gems/railties-3.2.1/lib/rails/commands/server.rb:46:in `app'
from /home/mencio/.rvm/gems/[email protected]/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app'
from /home/mencio/.rvm/gems/[email protected]/gems/rack-1.4.1/lib/rack/server.rb:252:in `start'
from /home/mencio/.rvm/gems/[email protected]/gems/railties-3.2.1/lib/rails/commands/server.rb:70:in `start'
from /home/mencio/.rvm/gems/[email protected]/gems/railties-3.2.1/lib/rails/commands.rb:55:in `block in <top (required)>'
from /home/mencio/.rvm/gems/[email protected]/gems/railties-3.2.1/lib/rails/commands.rb:50:in `tap'
from /home/mencio/.rvm/gems/[email protected]/gems/railties-3.2.1/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
Was the removal of Rails 3.0.x support intentional with bin 0.7.0? All appears to work when the active_support dependency in the gemspec is rolled back to ~> 3.0.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.