Giter Club home page Giter Club logo

bin's People

Contributors

greatuserongithub avatar jnunemaker avatar mikeauclair avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bin's Issues

Remove expired keys

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.

Rails 3.2 compatibility

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>'

Rails 3.0.x

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.