stockpile_cache
Simple Redis based cache with stampede protection and multiple DB support
File Explorer
- config.yml
- console
- setup
- cache.rb
- cached_value_expirer.rb
- cached_value_reader.rb
- configuration.rb
- constants.rb
- default_redis_configuration.rb
- executor.rb
- failed_lock_execution.rb
- lock.rb
- locked_execution_result.rb
- redis_connections.rb
- redis_connections_factory.rb
- yaml_redis_configuration.rb
- stockpile.rb
- stockpile_cache.rb
- cache_spec.rb
- cached_value_expirer_spec.rb
- cached_value_reader_spec.rb
- configuration_spec.rb
- default_redis_configuration_spec.rb
- executor_spec.rb
- lock_spec.rb
- locked_execution_result_spec.rb
- redis_connections_factory_spec.rb
- redis_connections_spec.rb
- yaml_redis_configuration_spec.rb
- spec_helper.rb
- stockpile_spec.rb
- .gitignore
- .rspec
- .rubocop.yml
- CHANGELOG.md
- CODE_OF_CONDUCT.md
- Gemfile
- Gemfile.lock
- LICENSE.txt
- Rakefile
- README.md
- stockpile-cache.gemspec
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
bundle
View Details ▼
bundle
Dependency manager for the Ruby programming language.
bundle install
Install all gems defined in the `Gemfile` expected in the working directory:
bundle exec {{command}} {{arguments}}
Execute a command in the context of the current bundle:
bundle update
Update all gems by the rules defined in the `Gemfile` and regenerate `Gemfile.lock`:
gem
View Details ▼
gem
A package manager for the Ruby programming language.
gem search {{regex}} {{[-a|--all]}}
Search for remote gem(s) and show all available versions:
gem install {{gem_name}}
Install the latest version of a gem:
gem install {{gem_name}} {{[-v|--version]}} {{1.0.0}}
Install a specific version of a gem:
rspec
View Details ▼
rspec
Behavior-driven development testing framework written in Ruby to test Ruby code.
rspec --init
Initialize an `.rspec` configuration and a spec helper file:
rspec
Run all tests:
rspec {{path/to/directory}}
Run a specific directory of tests:
